Home
last modified time | relevance | path

Searched refs:tp_richcompare (Results 1 – 15 of 15) sorted by relevance

/third_party/python/Doc/includes/
Dtypestruct.h47 richcmpfunc tp_richcompare; member
/third_party/python/Objects/
Dtypeslots.inc68 {-1, offsetof(PyTypeObject, tp_richcompare)},
Dobject.c685 (f = Py_TYPE(w)->tp_richcompare) != NULL) { in do_richcompare()
692 if ((f = Py_TYPE(v)->tp_richcompare) != NULL) { in do_richcompare()
698 if (!checked_reverse_op && (f = Py_TYPE(w)->tp_richcompare) != NULL) { in do_richcompare()
Dunionobject.c463 .tp_richcompare = union_richcompare,
Dtypeobject.c4571 if (Py_TYPE(self)->tp_richcompare == NULL) { in object_richcompare()
4576 res = (*Py_TYPE(self)->tp_richcompare)(self, other, Py_EQ); in object_richcompare()
5895 if (type->tp_richcompare == NULL && in inherit_slots()
5903 type->tp_richcompare = base->tp_richcompare; in inherit_slots()
7928 TPSLOT("__lt__", tp_richcompare, slot_tp_richcompare, richcmp_lt,
7930 TPSLOT("__le__", tp_richcompare, slot_tp_richcompare, richcmp_le,
7932 TPSLOT("__eq__", tp_richcompare, slot_tp_richcompare, richcmp_eq,
7934 TPSLOT("__ne__", tp_richcompare, slot_tp_richcompare, richcmp_ne,
7936 TPSLOT("__gt__", tp_richcompare, slot_tp_richcompare, richcmp_gt,
7938 TPSLOT("__ge__", tp_richcompare, slot_tp_richcompare, richcmp_ge,
Dgenericaliasobject.c649 .tp_richcompare = ga_richcompare,
Dlistobject.c2037 if (Py_TYPE(v)->tp_richcompare != ms->key_richcompare) in unsafe_object_compare()
2334 else if ((ms.key_richcompare = key_type->tp_richcompare) != NULL) { in list_sort_impl()
Dodictobject.c1535 cmp = PyDict_Type.tp_richcompare(v, w, op); in odict_richcompare()
/third_party/python/Doc/c-api/
Dtypeobj.rst92 …| :c:member:`~PyTypeObject.tp_richcompare` | :c:type:`richcmpfunc` | __lt__, …
882 When this field is not set (*and* :attr:`tp_richcompare` is not set),
896 Group: :attr:`tp_hash`, :attr:`tp_richcompare`
899 :c:member:`~PyTypeObject.tp_richcompare`: a subtype inherits both of
900 … :c:member:`~PyTypeObject.tp_richcompare` and :c:member:`~PyTypeObject.tp_hash`, when the subtype's
901 :c:member:`~PyTypeObject.tp_richcompare` and :c:member:`~PyTypeObject.tp_hash` are both ``NULL``.
1420 .. c:member:: richcmpfunc PyTypeObject.tp_richcompare
1424 PyObject *tp_richcompare(PyObject *self, PyObject *other, int op);
1435 :c:member:`~PyTypeObject.tp_richcompare` and for :c:func:`PyObject_RichCompare`:
1471 Group: :attr:`tp_hash`, :attr:`tp_richcompare`
[all …]
/third_party/python/Include/cpython/
Dobject.h237 richcmpfunc tp_richcompare; member
/third_party/python/Doc/extending/
Dnewtypes.rst388 richcmpfunc tp_richcompare;
390 The :c:member:`~PyTypeObject.tp_richcompare` handler is called when comparisons are needed. It is
621 (for example, ``tp_richcompare``). You will find examples of the function
/third_party/python/Misc/NEWS.d/
D3.8.0a2.rst174 ``ob_type->tp_richcompare == NULL``. Patch by Zackery Spytz.
/third_party/python/Python/
Dcontext.c715 .tp_richcompare = context_tp_richcompare,
Dhamt.c2903 .tp_richcompare = hamt_tp_richcompare,
/third_party/python/Misc/
DHISTORY25411 the new tp_richcompare slot in the type object. The cmp() function