Serhiy Storchaka added the comment: Proposed patch adds handling of error results of following functions: PyObject_IsTrue(), PyObject_Not(), PyObject_IsInstance(), PyObject_RichCompareBool(), _PyDict_Contains(). All these functions usually return 0 or 1, but also can return -1 in the case of error, and this case was not handled in some places.
---------- keywords: +patch stage: needs patch -> patch review title: PyObject_IsInstance() and PyObject_IsSubclass() can fail -> Unhandled error results of C API functions Added file: http://bugs.python.org/file39451/issue24115.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24115> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com