[docs] [issue30738] __next__() method in iterators 9.9

Eryk Sun report at bugs.python.org
Thu Jun 22 13:31:46 EDT 2017


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 <report at bugs.python.org>
<http://bugs.python.org/issue30738>
_______________________________________


More information about the docs mailing list