collections use __next__() in python 2.6?

Gary Robinson garyrob at
Fri Feb 26 19:08:10 CET 2010

The Python 2.6.4 docs for collections at say that __next__() is an abstract method for the Iterable ABC. But my understanding is that __next__() isn't supposed to be used until Python 3. Also, I'm using the Mapping ABC, which inherits from Iterable, and it doesn't seem to work if I define __next__(); I am not seeing problems if I define next() instead.

What am I missing?

Gary Robinson
Emergent Music, LLC
personal email: garyrob at
work email: grobinson at

More information about the Python-list mailing list