Slightly change generator StopIteration handling
Unconditionally raise a StopIteration when trying to iterate a finished generator, regardless of what originally stopped it from iterating.
Showing
Please register or sign in to comment
Unconditionally raise a StopIteration when trying to iterate a finished generator, regardless of what originally stopped it from iterating.