]> granicus.if.org Git - python/commitdiff
bpo-29986: Doc: Delete tip to raise TypeError from tp_richcompare. (GH-16095)
authorJulien Palard <julien@palard.fr>
Fri, 13 Sep 2019 13:07:37 +0000 (15:07 +0200)
committerGitHub <noreply@github.com>
Fri, 13 Sep 2019 13:07:37 +0000 (15:07 +0200)
Doc/c-api/typeobj.rst

index f8e30a0380b9dfc942d50fcfc15aa4dad67faf26..7c7a79129ccca23dca306ad38c8c88edcd142254 100644 (file)
@@ -1311,12 +1311,6 @@ and :c:type:`PyType_Type` effectively act as defaults.)
    ``Py_NotImplemented``, if another error occurred it must return *NULL* and
    set an exception condition.
 
-   .. note::
-
-      If you want to implement a type for which only a limited set of
-      comparisons makes sense (e.g. ``==`` and ``!=``, but not ``<`` and
-      friends), directly raise :exc:`TypeError` in the rich comparison function.
-
    The following constants are defined to be used as the third argument for
    :c:member:`~PyTypeObject.tp_richcompare` and for :c:func:`PyObject_RichCompare`: