[Python-Dev] PEP 479: Change StopIteration handling inside generators
Ethan Furman
ethan at stoneleaf.us
Wed Nov 26 19:07:40 CET 2014
On 11/26/2014 08:54 AM, Paul Moore wrote:
> 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.
No value is lost. The PEP exists because this mistake is so easy to make, and can be so hard to track down.
--
~Ethan~
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-dev/attachments/20141126/946d2cc5/attachment.sig>
More information about the Python-Dev
mailing list