[issue22906] PEP 479: Change StopIteration handling inside generators

Chris Angelico report at bugs.python.org
Sat Nov 29 09:38:37 CET 2014


Chris Angelico added the comment:

Stefan, I'm not sure - I don't know the details of the C API here. But I tried commenting out everything but that one line, and while it does result in RuntimeError, it doesn't do the exception chaining. Currently, I believe the exception isn't being caught at all; but I don't know what it would take to do the full catching properly. The current patch doesn't always have a traceback on the original StopIteration, either, so it's definitely not quite right yet.

----------

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


More information about the Python-bugs-list mailing list