Comment on Exceptions (2003)parentComments−recursive13yPython also has a `StopIterationError` that is raised to signal the end of a `for` loop, which is not exceptional at all.−teddyh13yIt's called "StopIteration", not "StopIterationError", because it is not an error.
Comments
Python also has a `StopIterationError` that is raised to signal the end of a `for` loop, which is not exceptional at all.
It's called "StopIteration", not "StopIterationError", because it is not an error.