[issue43753] [C API] Add Py_Is(x, y) and Py_IsNone(x) functions

STINNER Victor report at bugs.python.org
Tue May 18 16:44:33 EDT 2021


STINNER Victor <vstinner at python.org> added the comment:

Well, nobody came up with a better definition, so let's go with:

"Test if the x object is the y object, the same as x is y in Python."

Thanks for the feedback and reviews! Py_Is(x, y), Py_IsNone(x), Py_IsTrue(x) and Py_IsFalse(x) are now part of Python 3.10 C API.

----------
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43753>
_______________________________________


More information about the Python-bugs-list mailing list