[Python-Dev] PEP 479: Change StopIteration handling inside generators (original) (raw)

Paul Moore p.f.moore at gmail.com
Wed Nov 26 17:54:17 CET 2014


On 26 November 2014 at 16:24, Isaac Schwabacher <ischwabacher at wisc.edu> wrote:

This actually leads to a good example of why the PEP is necessary: [...]

Oh! If that's the current behaviour, then it probably needs to go into the PEP as a motivating example. It's far more convincing than most of the other arguments I've seen. Just one proviso - is it fixable in contextlib without a language change? If so, then it loses a lot of its value.

Paul



More information about the Python-Dev mailing list