Last active

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

collections.Iterable behaviour on py2.6/2.7

View test.py
1 2 3 4 5 6 7 8
import collections
 
class Foo(object):
def next(self):
return
 
f = Foo()
isinstance(f, collections.Iterator) # True on py2.6, False on 2.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.