I am a little bit lost on python iterators. I occasionally use them, but I don\'t remember creating one myself. I read from somewhere that I don\'t remember where, a code li
PEP 3114 renamed iterator.next() to iterator.__next__(). This was implemented in version 3.0. The link above contains all the gory details.
iterator.next()
iterator.__next__()
next has been renamed to __next__ in Python 3. As for what it does, it should return the next item, or raise StopIteration if there are no more.
next
__next__
StopIteration