[issue22906] PEP 479: Change StopIteration handling inside generators

Chris Angelico report at bugs.python.org
Tue Nov 25 19:02:40 CET 2014


Chris Angelico added the comment:

Known issues with the current patch, if anyone feels like playing with this who better knows the code:

1) Needs a __future__ directive to control behaviour
2) test_generators needs to be heavily reworked
3) The test of what exception was thrown needs to also handle StopIteration subclasses
4) Check for refleaks and/or over-freeing
5) Properly provide a traceback for the original StopIteration (not always happening)

Any others?

----------

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


More information about the Python-bugs-list mailing list