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

Mark Shannon report at bugs.python.org
Wed Apr 7 05:24:56 EDT 2021


Mark Shannon <mark at hotpy.org> added the comment:

For any sane design of tagged pointers, `x == y` (in C) will work fine.

`is` is not well defined except for a small set of values, so the docs for `Py_Is` would have to so vague as to be worthless, IMO.

----------
nosy: +Mark.Shannon

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


More information about the Python-bugs-list mailing list