Searched refs:tp_richcompare (Results 1 – 15 of 15) sorted by relevance
/third_party/python/Doc/includes/ |
D | typestruct.h | 47 richcmpfunc tp_richcompare; member
|
/third_party/python/Objects/ |
D | typeslots.inc | 68 {-1, offsetof(PyTypeObject, tp_richcompare)},
|
D | object.c | 685 (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()
|
D | unionobject.c | 463 .tp_richcompare = union_richcompare,
|
D | typeobject.c | 4571 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,
|
D | genericaliasobject.c | 649 .tp_richcompare = ga_richcompare,
|
D | listobject.c | 2037 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()
|
D | odictobject.c | 1535 cmp = PyDict_Type.tp_richcompare(v, w, op); in odict_richcompare()
|
/third_party/python/Doc/c-api/ |
D | typeobj.rst | 92 …| :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/ |
D | object.h | 237 richcmpfunc tp_richcompare; member
|
/third_party/python/Doc/extending/ |
D | newtypes.rst | 388 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/ |
D | 3.8.0a2.rst | 174 ``ob_type->tp_richcompare == NULL``. Patch by Zackery Spytz.
|
/third_party/python/Python/ |
D | context.c | 715 .tp_richcompare = context_tp_richcompare,
|
D | hamt.c | 2903 .tp_richcompare = hamt_tp_richcompare,
|
/third_party/python/Misc/ |
D | HISTORY | 25411 the new tp_richcompare slot in the type object. The cmp() function
|