Jacob Holm wrote:
It is relevant if we later want to distinguish between "return" and "raise StopIteration".
We want to distinguish between return *without* a value and StopIteration too.
My suggestion is to cut/change some features from PEP 380 that are in the way
But having StopIteration carry a value is *not* one of the things that's in the way, as far as I can see.