public
Last active

collections.Iterable behaviour on py2.6/2.7

  • Download Gist
test.py
Python
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.