[issue11441] compile() raises SystemError if called from except clause
Amaury Forgeot d'Arc
report at bugs.python.org
Tue Mar 8 19:04:18 CET 2011
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
Right. In most cases, "PyErr_SetObject(PyExc_SyntaxError, tuple);" will store the untouched tuple in tstate->curexc_value, *except* when "Implicit exception chaining" occurs, in which case the exception is normalized.
ast_error_finish() should not expect a tuple in all cases, and should probably normalize the exception as well.
----------
nosy: +amaury.forgeotdarc
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11441>
_______________________________________
More information about the Python-bugs-list
mailing list