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

Yury Selivanov report at bugs.python.org
Wed Nov 18 14:31:36 EST 2015


Yury Selivanov 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.

Not sure I understand what you're saying here.

----------

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


More information about the Python-bugs-list mailing list