Skip to content

Instantly share code, notes, and snippets.

@mjtamlyn
Last active December 15, 2015 04:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjtamlyn/5203598 to your computer and use it in GitHub Desktop.
Save mjtamlyn/5203598 to your computer and use it in GitHub Desktop.
collections.Iterable behaviour on py2.6/2.7
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