Eryk Sun added the comment:

Did you try the example in Python 2? Did you click on the "next" link in the 
preceding paragraph? Please read the following:

https://docs.python.org/2/library/stdtypes.html#iterator.next

    iterator.next()
       Return the next item from the container....

In Python 3, this method was renamed `__next__`.

----------
nosy: +eryksun
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30738>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to