Create a gist now

Instantly share code, notes, and snippets.

@mjtamlyn /
Last active Dec 15, 2015

collections.Iterable behaviour on py2.6/2.7
import collections
class Foo(object):
def next(self):
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