Home
last modified time | relevance | path

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

/external/python/cpython2/Doc/includes/
Dtypestruct.h46 richcmpfunc tp_richcompare; member
/external/python/cpython3/Doc/includes/
Dtypestruct.h45 richcmpfunc tp_richcompare; member
/external/python/cpython3/Objects/
Dtypeslots.inc68 offsetof(PyHeapTypeObject, ht_type.tp_richcompare),
Dobject.c715 (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()
Dtypeobject.c3852 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,
Dlistobject.c2050 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()
Dodictobject.c1488 cmp = PyDict_Type.tp_richcompare(v, w, op); in odict_richcompare()
/external/python/cpython3/Doc/c-api/
Dtypeobj.rst92 …| :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/
Dtypeobj.rst267 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/
Dobject.h223 richcmpfunc tp_richcompare; member
/external/python/cpython2/Objects/
Dtypeobject.c4058 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,
Dobject.c600 ? (t)->tp_richcompare : NULL)
/external/python/cpython3/Doc/extending/
Dnewtypes.rst371 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/
Dobject.h369 richcmpfunc tp_richcompare; member
/external/python/cpython3/Python/
Dcontext.c684 .tp_richcompare = context_tp_richcompare,
Dhamt.c2923 .tp_richcompare = hamt_tp_richcompare,
/external/python/cpython3/Misc/NEWS.d/
D3.8.0a2.rst174 ``ob_type->tp_richcompare == NULL``. Patch by Zackery Spytz.
/external/tensorflow/tensorflow/compiler/xla/python/
Dbfloat16.cc348 return PyGenericArrType_Type.tp_richcompare(a, b, op); in PyBfloat16_RichCompare()
/external/python/cpython2/Doc/extending/
Dnewtypes.rst1515 0, /* tp_richcompare */
/external/python/cpython2/Misc/
DHISTORY8032 the new tp_richcompare slot in the type object. The cmp() function
/external/python/cpython3/Misc/
DHISTORY25411 the new tp_richcompare slot in the type object. The cmp() function