Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22c3366 commit ad30c42Copy full SHA for ad30c42
1 file changed
Doc/c-api/object.rst
@@ -108,6 +108,9 @@ Object Protocol
108
Python expression ``o1 op o2``, where ``op`` is the operator corresponding to
109
*opid*.
110
111
+.. note::
112
+ If *o1* and *o2* are the same object, :c:func:`PyObject_RichCompareBool`
113
+ will always return ``1`` for :const:`Py_EQ` and ``0`` for :const:`Py_NE`.
114
115
.. c:function:: PyObject* PyObject_Repr(PyObject *o)
116
0 commit comments