summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2014-07-03 16:07:57 +0300
committerAndrew Svetlov <andrew.svetlov@gmail.com>2014-07-03 16:07:57 +0300
commita6237d822a977efc076399d00c6cf682d68b52e2 (patch)
tree1358d314daf685cc0179d81cc0bbd1eeb7293a0e /Doc
parentf7eaa0c63ccac33cf092e2a3a7dbfe691eb579cb (diff)
parent0d50af45b654784fe639ab6489f91e7524ed3ace (diff)
downloadcpython-git-a6237d822a977efc076399d00c6cf682d68b52e2.tar.gz
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 f21d058eb8..b627d95f74 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