[issue24115] PyObject_IsInstance() and PyObject_IsSubclass() can fail

Serhiy Storchaka report at bugs.python.org
Sat May 2 18:56:26 CEST 2015


New submission from Serhiy Storchaka:

PyObject_IsInstance() and PyObject_IsSubclass() cat return 0, 1, or -1. But some code use "if (PyObject_IsInstance(...))" or "if (!PyObject_IsInstance(...))". This should be fixed.

----------
assignee: serhiy.storchaka
components: Extension Modules, Interpreter Core
messages: 242407
nosy: serhiy.storchaka
priority: normal
severity: normal
stage: needs patch
status: open
title: PyObject_IsInstance() and PyObject_IsSubclass() can fail
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5

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


More information about the Python-bugs-list mailing list