New submission from Thomas Heller <[EMAIL PROTECTED]>: 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 <[EMAIL PROTECTED]> <http://bugs.python.org/issue2542> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com