Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11cda47 commit 0d50af4Copy full SHA for 0d50af4
1 file changed
Doc/c-api/typeobj.rst
@@ -597,7 +597,9 @@ type objects) *must* have the :attr:`ob_size` field.
597
.. c:member:: richcmpfunc PyTypeObject.tp_richcompare
598
599
An optional pointer to the rich comparison function, whose signature is
600
- ``PyObject *tp_richcompare(PyObject *a, PyObject *b, int op)``.
+ ``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`.
603
604
The function should return the result of the comparison (usually ``Py_True``
605
or ``Py_False``). If the comparison is undefined, it must return
0 commit comments