[issue24115] Unhandled error results of C API functions

2015-05-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.6 ___ Python tracker ___ ___

[issue24115] Unhandled error results of C API functions

2015-05-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 82490d05f3b0 by Serhiy Storchaka in branch '2.7': Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(), https://hg.python.org/cpython/rev/82490d05f3b0 New changeset 8167df7d4cd0 by Serhiy Storchaka in branch '3.4': Issue #24115: Update use

[issue24115] Unhandled error results of C API functions

2015-05-21 Thread Serhiy Storchaka
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 e