Searched refs:tp_compare (Results 1 – 10 of 10) sorted by relevance
/external/python/cpython2/Doc/includes/ |
D | typestruct.h | 12 cmpfunc tp_compare; member
|
/external/python/cpython2/Objects/ |
D | object.c | 716 f = v->ob_type->tp_compare; in try_3way_compare() 720 return (*w->ob_type->tp_compare)(v, w); in try_3way_compare() 723 if (f != NULL && f == w->ob_type->tp_compare) { in try_3way_compare() 730 w->ob_type->tp_compare == _PyObject_SlotCompare) in try_3way_compare() 747 f = v->ob_type->tp_compare; in try_3way_compare() 748 if (f != NULL && f == w->ob_type->tp_compare) { in try_3way_compare() 824 && (f = v->ob_type->tp_compare) != NULL) { in do_cmp() 973 fcmp = v->ob_type->tp_compare; in PyObject_RichCompare() 1126 if (tp->tp_compare == NULL && RICHCOMPARE(tp) == NULL) { in PyObject_Hash()
|
D | typeobject.c | 664 Py_TYPE(v)->tp_compare || Py_TYPE(w)->tp_compare) { in type_richcompare() 4057 if (type->tp_compare == NULL && 4061 type->tp_compare = base->tp_compare; 4086 COPYSLOT(tp_compare); 4730 if (Py_TYPE(other)->tp_compare != func && 5508 if (Py_TYPE(self)->tp_compare == _PyObject_SlotCompare) { 5513 if (Py_TYPE(other)->tp_compare == _PyObject_SlotCompare) { 6044 TPSLOT("__cmp__", tp_compare, _PyObject_SlotCompare, wrap_cmpfunc,
|
/external/python/cpython2/Doc/c-api/ |
D | typeobj.rst | 258 .. c:member:: cmpfunc PyTypeObject.tp_compare 268 …ber:`~PyTypeObject.tp_hash`: a subtypes inherits all three of :c:member:`~PyTypeObject.tp_compare`, 270 …:c:member:`~PyTypeObject.tp_compare`, :c:member:`~PyTypeObject.tp_richcompare`, and :c:member:`~Py… 343 When this field is not set, two possibilities exist: if the :c:member:`~PyTypeObject.tp_compare` 348 …:c:member:`~PyTypeObject.tp_compare`: a subtypes inherits all three of :c:member:`~PyTypeObject.tp… 350 …:c:member:`~PyTypeObject.tp_compare`, :c:member:`~PyTypeObject.tp_richcompare` and :c:member:`~PyT… 696 This field is inherited by subtypes together with :c:member:`~PyTypeObject.tp_compare` and 697 …mber:`~PyTypeObject.tp_hash`: a subtype inherits all three of :c:member:`~PyTypeObject.tp_compare`, 699 …:c:member:`~PyTypeObject.tp_compare`, :c:member:`~PyTypeObject.tp_richcompare`, and :c:member:`~Py…
|
/external/python/cpython2/Include/ |
D | object.h | 335 cmpfunc tp_compare; member
|
/external/python/cpython2/Doc/extending/ |
D | newtypes.rst | 90 0, /* tp_compare */ 1314 cmpfunc tp_compare; 1316 The :c:member:`~PyTypeObject.tp_compare` handler is called when comparisons are needed and the 1327 A :c:member:`~PyTypeObject.tp_compare` handler may raise an exception. In this case it should 1560 function you want (for example, ``tp_print`` or ``tp_compare``). You will find
|
/external/python/pyopenssl/doc/ |
D | ChangeLog_old.txt | 545 * src/crypto/x509name.c: Fix tp_compare so it only returns -1, 0, or
|
/external/python/cpython3/Doc/c-api/ |
D | typeobj.rst | 771 Formerly known as ``tp_compare`` and ``tp_reserved``.
|
/external/python/cpython3/Misc/ |
D | HISTORY | 15241 - Issue #1717: Removed builtin cmp() function, dropped tp_compare 15243 the type definition cmpfunc. The tp_compare slot has been renamed 23984 - The documentation for the tp_compare slot is updated to require that 25422 object, which may be NotImplemented (in which case the tp_compare
|
/external/python/cpython2/Misc/ |
D | HISTORY | 6605 - The documentation for the tp_compare slot is updated to require that 8043 object, which may be NotImplemented (in which case the tp_compare
|