What happens when StopIteration escapes directly from a generator function body in Python…

from Generators and iterators
Python 3.14 intermediate 1 min

What happens when StopIteration escapes directly from a generator function body in Python 3.14?

Report an error