[issue23353] generator bug with exception: tstate->exc_value is not cleared after an except block

Antoine Pitrou report at bugs.python.org
Sat Jan 31 02:16:57 CET 2015


Antoine Pitrou added the comment:

> Currently, a generator inherits the currently handled exception from
> the "caller" 

This is expected, since this is how normal functions behave.

----------

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


More information about the Python-bugs-list mailing list