/external/python/cpython2/Doc/includes/ |
D | typestruct.h | 46 richcmpfunc tp_richcompare; member
|
/external/python/cpython3/Doc/includes/ |
D | typestruct.h | 45 richcmpfunc tp_richcompare; member
|
/external/python/cpython3/Objects/ |
D | typeslots.inc | 68 offsetof(PyHeapTypeObject, ht_type.tp_richcompare),
|
D | object.c | 715 (f = w->ob_type->tp_richcompare) != NULL) { in do_richcompare() 722 if ((f = v->ob_type->tp_richcompare) != NULL) { in do_richcompare() 728 if (!checked_reverse_op && (f = w->ob_type->tp_richcompare) != NULL) { in do_richcompare()
|
D | typeobject.c | 3852 if (self->ob_type->tp_richcompare == NULL) { in object_richcompare() 3857 res = (*self->ob_type->tp_richcompare)(self, other, Py_EQ); in object_richcompare() 5177 if (type->tp_richcompare == NULL && in inherit_slots() 5181 type->tp_richcompare = base->tp_richcompare; in inherit_slots() 6955 TPSLOT("__lt__", tp_richcompare, slot_tp_richcompare, richcmp_lt, 6957 TPSLOT("__le__", tp_richcompare, slot_tp_richcompare, richcmp_le, 6959 TPSLOT("__eq__", tp_richcompare, slot_tp_richcompare, richcmp_eq, 6961 TPSLOT("__ne__", tp_richcompare, slot_tp_richcompare, richcmp_ne, 6963 TPSLOT("__gt__", tp_richcompare, slot_tp_richcompare, richcmp_gt, 6965 TPSLOT("__ge__", tp_richcompare, slot_tp_richcompare, richcmp_ge,
|
D | listobject.c | 2050 if (v->ob_type->tp_richcompare != ms->key_richcompare) in unsafe_object_compare() 2348 else if ((ms.key_richcompare = key_type->tp_richcompare) != NULL) { in list_sort_impl()
|
D | odictobject.c | 1488 cmp = PyDict_Type.tp_richcompare(v, w, op); in odict_richcompare()
|
/external/python/cpython3/Doc/c-api/ |
D | typeobj.rst | 92 …| :c:member:`~PyTypeObject.tp_richcompare` | :c:type:`richcmpfunc` | __lt__, … 878 When this field is not set (*and* :attr:`tp_richcompare` is not set), 892 Group: :attr:`tp_hash`, :attr:`tp_richcompare` 895 :c:member:`~PyTypeObject.tp_richcompare`: a subtype inherits both of 896 … :c:member:`~PyTypeObject.tp_richcompare` and :c:member:`~PyTypeObject.tp_hash`, when the subtype's 897 :c:member:`~PyTypeObject.tp_richcompare` and :c:member:`~PyTypeObject.tp_hash` are both ``NULL``. 1316 .. c:member:: richcmpfunc PyTypeObject.tp_richcompare 1320 PyObject *tp_richcompare(PyObject *self, PyObject *other, int op); 1331 :c:member:`~PyTypeObject.tp_richcompare` and for :c:func:`PyObject_RichCompare`: 1367 Group: :attr:`tp_hash`, :attr:`tp_richcompare` [all …]
|
/external/python/cpython2/Doc/c-api/ |
D | typeobj.rst | 267 This field is inherited by subtypes together with :c:member:`~PyTypeObject.tp_richcompare` and 269 … :c:member:`~PyTypeObject.tp_richcompare`, and :c:member:`~PyTypeObject.tp_hash` when the subtype's 270 …:c:member:`~PyTypeObject.tp_compare`, :c:member:`~PyTypeObject.tp_richcompare`, and :c:member:`~Py… 344 … and :c:member:`~PyTypeObject.tp_richcompare` fields are both *NULL*, a default hash value based on 347 This field is inherited by subtypes together with :c:member:`~PyTypeObject.tp_richcompare` and 349 …:c:member:`~PyTypeObject.tp_richcompare`, and :c:member:`~PyTypeObject.tp_hash`, when the subtype's 350 …:c:member:`~PyTypeObject.tp_compare`, :c:member:`~PyTypeObject.tp_richcompare` and :c:member:`~PyT… 493 If this bit is set, the type object has the :c:member:`~PyTypeObject.tp_richcompare` field, as 680 .. c:member:: richcmpfunc PyTypeObject.tp_richcompare 683 ``PyObject *tp_richcompare(PyObject *a, PyObject *b, int op)``. [all …]
|
/external/python/cpython3/Include/cpython/ |
D | object.h | 223 richcmpfunc tp_richcompare; member
|
/external/python/cpython2/Objects/ |
D | typeobject.c | 4058 type->tp_richcompare == NULL && 4062 type->tp_richcompare = base->tp_richcompare; 5762 if (Py_TYPE(self)->tp_richcompare == slot_tp_richcompare) { 5768 if (Py_TYPE(other)->tp_richcompare == slot_tp_richcompare) { 6061 TPSLOT("__lt__", tp_richcompare, slot_tp_richcompare, richcmp_lt, 6063 TPSLOT("__le__", tp_richcompare, slot_tp_richcompare, richcmp_le, 6065 TPSLOT("__eq__", tp_richcompare, slot_tp_richcompare, richcmp_eq, 6067 TPSLOT("__ne__", tp_richcompare, slot_tp_richcompare, richcmp_ne, 6069 TPSLOT("__gt__", tp_richcompare, slot_tp_richcompare, richcmp_gt, 6071 TPSLOT("__ge__", tp_richcompare, slot_tp_richcompare, richcmp_ge,
|
D | object.c | 600 ? (t)->tp_richcompare : NULL)
|
/external/python/cpython3/Doc/extending/ |
D | newtypes.rst | 371 richcmpfunc tp_richcompare; 373 The :c:member:`~PyTypeObject.tp_richcompare` handler is called when comparisons are needed. It is 604 (for example, ``tp_richcompare``). You will find examples of the function
|
/external/python/cpython2/Include/ |
D | object.h | 369 richcmpfunc tp_richcompare; member
|
/external/python/cpython3/Python/ |
D | context.c | 684 .tp_richcompare = context_tp_richcompare,
|
D | hamt.c | 2923 .tp_richcompare = hamt_tp_richcompare,
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.8.0a2.rst | 174 ``ob_type->tp_richcompare == NULL``. Patch by Zackery Spytz.
|
/external/tensorflow/tensorflow/compiler/xla/python/ |
D | bfloat16.cc | 348 return PyGenericArrType_Type.tp_richcompare(a, b, op); in PyBfloat16_RichCompare()
|
/external/python/cpython2/Doc/extending/ |
D | newtypes.rst | 1515 0, /* tp_richcompare */
|
/external/python/cpython2/Misc/ |
D | HISTORY | 8032 the new tp_richcompare slot in the type object. The cmp() function
|
/external/python/cpython3/Misc/ |
D | HISTORY | 25411 the new tp_richcompare slot in the type object. The cmp() function
|