StopIteration
python StopIteration
Raised by the built-in next() and by an iterator's __next__() method to signal that there are no further items. Propagation out of a generator function is converted to a return.
Raised by the built-in next() and by an iterator's __next__() method to signal that there are no further items. Propagation out of a generator function is converted to a return.