[issue25612] nested try..excepts don't work correctly for generators

Martin Panter report at bugs.python.org
Tue Nov 17 18:36:15 EST 2015


Martin Panter added the comment:

Thinking about the __context__ thing some more, I guess it might make sense for __context__ to be overwritten by the generator context. The same way it gets overwritten when you execute “raise” inside an exception handler.

----------

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


More information about the Python-bugs-list mailing list