[Python-ideas] Possible PEP 380 tweak

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Oct 30 05:17:50 CEST 2010

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.


More information about the Python-ideas mailing list