[issue3611] invalid exception context
STINNER Victor
report at bugs.python.org
Fri Aug 22 01:54:23 CEST 2008
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
Ok, it was not enough: exc_{type,value,traceback} have to be
saved/restored. So here is a new patch. I doesn't change Python
behaviour for previous pitrou snippet (msg71658): it doesn't crash
here and display two errors.
I think that this issue mix differents bugs:
(1) lostcontext.py fixed by « if (why == WHY_EXCEPTION
&& !throwflag) »
(2) pitrou snippet
(3) PyErr_SetObject() is no re-entrant: not fixed yet (please review
my new patch attached to this comment ;-))
Added file: http://bugs.python.org/file11203/pyerr_setobject_reentrant-v2.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3611>
_______________________________________
More information about the Python-bugs-list
mailing list