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 53f78ec commit 375a3e2Copy full SHA for 375a3e2
1 file changed
Doc/c-api/typeobj.rst
@@ -1311,12 +1311,6 @@ and :c:type:`PyType_Type` effectively act as defaults.)
1311
``Py_NotImplemented``, if another error occurred it must return *NULL* and
1312
set an exception condition.
1313
1314
- .. note::
1315
-
1316
- If you want to implement a type for which only a limited set of
1317
- comparisons makes sense (e.g. ``==`` and ``!=``, but not ``<`` and
1318
- friends), directly raise :exc:`TypeError` in the rich comparison function.
1319
1320
The following constants are defined to be used as the third argument for
1321
:c:member:`~PyTypeObject.tp_richcompare` and for :c:func:`PyObject_RichCompare`:
1322
0 commit comments