summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2014-07-03 13:07:57 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2014-07-03 13:07:57 (GMT)
commita6237d822a977efc076399d00c6cf682d68b52e2 (patch)
tree1358d314daf685cc0179d81cc0bbd1eeb7293a0e /Doc
parentf7eaa0c63ccac33cf092e2a3a7dbfe691eb579cb (diff)
parent0d50af45b654784fe639ab6489f91e7524ed3ace (diff)
downloadcpython-a6237d822a977efc076399d00c6cf682d68b52e2.zip
cpython-a6237d822a977efc076399d00c6cf682d68b52e2.tar.gz
cpython-a6237d822a977efc076399d00c6cf682d68b52e2.tar.bz2
Merge 3.4
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/typeobj.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/c-api/typeobj.rst b/Doc/c-api/typeobj.rst
index f21d058..b627d95 100644
--- a/Doc/c-api/typeobj.rst
+++ b/Doc/c-api/typeobj.rst
@@ -597,7 +597,9 @@ type objects) *must* have the :attr:`ob_size` field.
.. c:member:: richcmpfunc PyTypeObject.tp_richcompare
An optional pointer to the rich comparison function, whose signature is
- ``PyObject *tp_richcompare(PyObject *a, PyObject *b, int op)``.
+ ``PyObject *tp_richcompare(PyObject *a, PyObject *b, int op)``. The first
+ parameter is guaranteed to be an instance of the type that is defined
+ by :c:type:`PyTypeObject`.
The function should return the result of the comparison (usually ``Py_True``
or ``Py_False``). If the comparison is undefined, it must return