mirror of https://github.com/python/cpython.git
Issue #10912: Clarify the documentation of PyObject_RichCompareBool. Thanks to Devin Jeanpierre for spotting the problem.
This commit is contained in:
parent
22c336645c
commit
ad30c4206a
|
@ -108,6 +108,9 @@ Object Protocol
|
||||||
Python expression ``o1 op o2``, where ``op`` is the operator corresponding to
|
Python expression ``o1 op o2``, where ``op`` is the operator corresponding to
|
||||||
*opid*.
|
*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)
|
.. c:function:: PyObject* PyObject_Repr(PyObject *o)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue