]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #10912: Clarify the documentation of PyObject_RichCompareBool. Thanks to Devin...
authorEli Bendersky <eliben@gmail.com>
Sat, 15 Jan 2011 10:23:34 +0000 (10:23 +0000)
committerEli Bendersky <eliben@gmail.com>
Sat, 15 Jan 2011 10:23:34 +0000 (10:23 +0000)
Doc/c-api/object.rst

index 8410934423fae332eee67cec169561ea6d49f732..afa08c9bc3c8a4c27115fa26c76e6de39f5c1b4b 100644 (file)
@@ -108,6 +108,9 @@ Object Protocol
    Python expression ``o1 op o2``, where ``op`` is the operator corresponding to
    *opid*.
 
+.. note::
+   If *o1* and *o2* are the same object, :c:func:`PyObject_RichCompareBool`
+   will always return ``1`` for :const:`Py_EQ` and ``0`` for :const:`Py_NE`.
 
 .. c:function:: PyObject* PyObject_Repr(PyObject *o)