Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a6237d8

Browse files
committed
Merge 3.4
2 parents f7eaa0c + 0d50af4 commit a6237d8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Doc/c-api/typeobj.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,9 @@ type objects) *must* have the :attr:`ob_size` field.
597597
.. c:member:: richcmpfunc PyTypeObject.tp_richcompare
598598
599599
An optional pointer to the rich comparison function, whose signature is
600-
``PyObject *tp_richcompare(PyObject *a, PyObject *b, int op)``.
600+
``PyObject *tp_richcompare(PyObject *a, PyObject *b, int op)``. The first
601+
parameter is guaranteed to be an instance of the type that is defined
602+
by :c:type:`PyTypeObject`.
601603

602604
The function should return the result of the comparison (usually ``Py_True``
603605
or ``Py_False``). If the comparison is undefined, it must return

0 commit comments

Comments
 (0)