next()

This is an iterator method.

Return the next item from the container. 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.