[issue41049] Document pointer comparison in PyObject_RichCompareBool()

Raymond Hettinger report at bugs.python.org
Sat Jun 20 06:13:40 EDT 2020


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

Hmm, I missed it.  There is already a note in the link you provided"

"""Note If o1 and o2 are the same object, PyObject_RichCompareBool() will always return 1 for Py_EQ and 0 for Py_NE."""

----------
resolution:  -> out of date
stage: patch review -> resolved
status: open -> closed

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


More information about the Python-bugs-list mailing list