[issue22906] PEP 479: Change StopIteration handling inside generators

Yury Selivanov report at bugs.python.org
Fri May 8 02:33:19 CEST 2015


Yury Selivanov added the comment:

> Yury's patch mostly looks good to me, except:

Thanks!

> * the check in contextlib should be against __cause__ rather than
__context__, and there should be a new test for this code handling path

Done.  I've also added one test for correct handling of StopIteration without PEP 479.

> * there should be a new test for the __future__ flag itself (independently
of the contextlib tests)

Forgot to attach it to the first patch!

Nick, please take a look at the new patch (attached).

----------
Added file: http://bugs.python.org/file39317/pep0479.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22906>
_______________________________________


More information about the Python-bugs-list mailing list