A `StopIteration` exception propagates out of a generator function unexpectedly. What Python version behavior causes this?
-
A
In Python 3.7+, StopIteration raised inside a generator is converted to RuntimeError
-
B
Generators no longer support StopIteration in Python 3
-
C
StopIteration can only be raised by iterators, not generators
-
D
The return value of a generator must be None