3 ms·
Python also has a `StopIterationError` that is raised to signal the end of a `for` loop, which is not exceptional at all.
by recursive 13y ago
Python also has a `StopIterationError` that is raised to signal the end of a `for` loop, which is not exceptional at all.
- teddyh 13y agoIt's called "StopIteration", not "StopIterationError", because it is not an error.