[issue5739] Language reference is ambiguous regarding next() method lookup

Terry J. Reedy report at bugs.python.org
Wed Feb 18 19:12:38 CET 2015


Terry J. Reedy added the comment:

Still true in the current doc
https://docs.python.org/3/reference/datamodel.html#special-method-names
object.__iter__ in listed in 3.3.6. Emulating container types
A listing for __next__ could follow that.

Both iterator special methods are documented in
https://docs.python.org/3/library/stdtypes.html#iterator-types

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5739>
_______________________________________


More information about the Python-bugs-list mailing list