koala114
July 21st, 2010, 04:26 PM
I'm trying to figure out generator function, when I print __next__(), python says
AttributeError: 'generator' object has no attribute '__next__'
Has the __next__ method been removed from 2.6.5?
On my ubuntu box is Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
AttributeError: 'generator' object has no attribute '__next__'
Has the __next__ method been removed from 2.6.5?
On my ubuntu box is Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)