[issue2542] PyErr_ExceptionMatches must not fail
Thomas Heller
report at bugs.python.org
Thu Apr 3 10:59:00 CEST 2008
New submission from Thomas Heller <theller at ctypes.org>:
PyErr_ExceptionMatches must not fail, according to the docs. So an
error code from PyObject_IsSubclass() cannot be returned.
The attached patch calls PyErr_WriteUnraisable in this case, and returns
an arbitrary value (0 was chosen in the patch).
See also issue #2534.
----------
components: Interpreter Core
files: errors.diff
keywords: patch, patch
messages: 64894
nosy: theller
severity: normal
status: open
title: PyErr_ExceptionMatches must not fail
type: crash
versions: Python 2.6
Added file: http://bugs.python.org/file9931/errors.diff
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2542>
__________________________________
More information about the Python-bugs-list
mailing list