summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/object.rst
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2011-01-15 10:33:07 (GMT)
committerEli Bendersky <eliben@gmail.com>2011-01-15 10:33:07 (GMT)
commit5bcc563cdeacff962635e34c6f642abeacc05929 (patch)
tree516c9f1db6a8e5f9383e1bbabbc92eb327bc2920 /Doc/c-api/object.rst
parent78ae1fb1b94c0f614fd01ba5693aaaead3d4699d (diff)
downloadcpython-5bcc563cdeacff962635e34c6f642abeacc05929.zip
cpython-5bcc563cdeacff962635e34c6f642abeacc05929.tar.gz
cpython-5bcc563cdeacff962635e34c6f642abeacc05929.tar.bz2
Merged revisions 88009 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88009 | eli.bendersky | 2011-01-15 12:23:34 +0200 (Sat, 15 Jan 2011) | 2 lines Issue #10912: Clarify the documentation of PyObject_RichCompareBool. Thanks to Devin Jeanpierre for spotting the problem. ........
Diffstat (limited to 'Doc/c-api/object.rst')
-rw-r--r--Doc/c-api/object.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/c-api/object.rst b/Doc/c-api/object.rst
index b0700a1..c084860 100644
--- a/Doc/c-api/object.rst
+++ b/Doc/c-api/object.rst
@@ -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`.
.. cfunction:: PyObject* PyObject_Repr(PyObject *o)