[issue20500] assertion failed when passing an exception object to sys.exit

STINNER Victor report at bugs.python.org
Sun Feb 9 02:44:04 CET 2014


STINNER Victor added the comment:

"I also added a versionchanged to PyObject_Str and a note in the Porting section of What's New, as third party extensions could also be affected by this change - it elevates "may silently discard an active exception" to "debug build assertion failure"."

Hi, I added this check in many other functions: PyEval_EvalFrameEx(), PyEval_CallObjectWithKeywords(), PyObject_Repr(), PyObject_Str(). And also private methods like type_call().

I added these assertions when I worked on #18408 to ensure that MemoryError exceptions are no more ignored.

----------

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


More information about the Python-bugs-list mailing list