ID EN
Built-in Types

__next__

Python 3.11

Return the next item from the iterator. If there are no further items, raise the StopIteration exception. This method corresponds to the tp_iternext slot of the type structure for Python objects in the Python/C API.

Syntax

PYTHON
iterator.__next__()

See Also

iterator StopIteration tp_iternext