/external/python/cpython2/Doc/includes/ |
D | typestruct.h | 23 hashfunc tp_hash; member
|
/external/python/cpython3/Doc/includes/ |
D | typestruct.h | 24 hashfunc tp_hash; member
|
/external/python/cpython3/Objects/ |
D | typeslots.inc | 60 offsetof(PyHeapTypeObject, ht_type.tp_hash),
|
D | object.c | 816 if (tp->tp_hash != NULL) in PyObject_Hash() 817 return (*tp->tp_hash)(v); in PyObject_Hash() 826 if (tp->tp_hash != NULL) in PyObject_Hash() 827 return (*tp->tp_hash)(v); in PyObject_Hash()
|
D | typeobject.c | 5178 type->tp_hash == NULL && in inherit_slots() 5182 type->tp_hash = base->tp_hash; in inherit_slots() 5415 if (type->tp_hash == NULL) { in PyType_Ready() 5422 type->tp_hash = PyObject_HashNotImplemented; in PyType_Ready() 6500 h = PyLong_Type.tp_hash(res); in slot_tp_hash() 6940 TPSLOT("__hash__", tp_hash, slot_tp_hash, wrap_hashfunc, 7288 ptr == (void**)&type->tp_hash) { in update_one_slot()
|
/external/python/cpython3/Python/ |
D | context.c | 689 .tp_hash = PyObject_HashNotImplemented, 1046 .tp_hash = (hashfunc)contextvar_tp_hash, 1180 .tp_hash = PyObject_HashNotImplemented,
|
D | hamt.c | 2928 .tp_hash = PyObject_HashNotImplemented, 2945 .tp_hash = PyObject_HashNotImplemented, 2958 .tp_hash = PyObject_HashNotImplemented, 2971 .tp_hash = PyObject_HashNotImplemented,
|
/external/python/cpython3/Doc/c-api/ |
D | typeobj.rst | 70 …| :c:member:`~PyTypeObject.tp_hash` | :c:type:`hashfunc` | __hash__ … 863 .. c:member:: hashfunc PyTypeObject.tp_hash 872 Py_hash_t tp_hash(PyObject *); 887 the Python level will result in the ``tp_hash`` slot being set to 892 Group: :attr:`tp_hash`, :attr:`tp_richcompare` 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``. 1367 Group: :attr:`tp_hash`, :attr:`tp_richcompare` 1369 This field is inherited by subtypes together with :c:member:`~PyTypeObject.tp_hash`: 1370 …a subtype inherits :c:member:`~PyTypeObject.tp_richcompare` and :c:member:`~PyTypeObject.tp_hash` … [all …]
|
D | object.rst | 438 This function receives special treatment when stored in a ``tp_hash`` slot,
|
/external/python/cpython3/Include/cpython/ |
D | object.h | 200 hashfunc tp_hash; member
|
/external/python/cpython2/Objects/ |
D | object.c | 1113 if (tp->tp_hash != NULL) in PyObject_Hash() 1114 return (*tp->tp_hash)(v); in PyObject_Hash() 1123 if (tp->tp_hash != NULL) in PyObject_Hash() 1124 return (*tp->tp_hash)(v); in PyObject_Hash()
|
D | typeobject.c | 4059 type->tp_hash == NULL) 4063 type->tp_hash = base->tp_hash; 4066 if (base->tp_hash && 4067 (base->tp_hash != PyObject_HashNotImplemented) && 5574 h = PyLong_Type.tp_hash(res); 6048 TPSLOT("__hash__", tp_hash, slot_tp_hash, wrap_hashfunc, 6377 ptr == (void**)&type->tp_hash) {
|
D | classobject.c | 1014 outcome = Py_TYPE(res)->tp_hash(res); in instance_hash()
|
/external/python/cpython2/Doc/c-api/ |
D | typeobj.rst | 268 …:c:member:`~PyTypeObject.tp_hash`: a subtypes inherits all three of :c:member:`~PyTypeObject.tp_co… 269 … :c:member:`~PyTypeObject.tp_richcompare`, and :c:member:`~PyTypeObject.tp_hash` when the subtype's 270 …e`, :c:member:`~PyTypeObject.tp_richcompare`, and :c:member:`~PyTypeObject.tp_hash` are all *NULL*. 323 .. c:member:: hashfunc PyTypeObject.tp_hash 340 the Python level will result in the ``tp_hash`` slot being set to 349 …:c:member:`~PyTypeObject.tp_richcompare`, and :c:member:`~PyTypeObject.tp_hash`, when the subtype's 350 …re`, :c:member:`~PyTypeObject.tp_richcompare` and :c:member:`~PyTypeObject.tp_hash` are all *NULL*. 697 …:c:member:`~PyTypeObject.tp_hash`: a subtype inherits all three of :c:member:`~PyTypeObject.tp_com… 698 …:c:member:`~PyTypeObject.tp_richcompare`, and :c:member:`~PyTypeObject.tp_hash`, when the subtype's 699 …e`, :c:member:`~PyTypeObject.tp_richcompare`, and :c:member:`~PyTypeObject.tp_hash` are all *NULL*.
|
D | object.rst | 316 This function receives special treatment when stored in a ``tp_hash`` slot,
|
/external/python/cpython2/Misc/NEWS.d/ |
D | 2.6b2.rst | 53 tp_hash=PyObject_HashNotImplemented at the C level.
|
D | 2.6b3.rst | 519 tp_hash slot (added in 2.6b2) are now documented
|
D | 2.7a1.rst | 1130 PyObject_Hash now implicitly calls PyType_Ready on types where the tp_hash
|
/external/python/cpython2/Include/ |
D | object.h | 346 hashfunc tp_hash; member
|
/external/python/cpython3/Doc/extending/ |
D | newtypes.rst | 444 hashfunc tp_hash; 460 Returning ``-1`` from :c:member:`~PyTypeObject.tp_hash` indicates an error,
|
/external/python/cpython2/Modules/ |
D | _testcapimodule.c | 280 if (type->tp_hash != PyType_Type.tp_hash) { in test_lazy_hash_inheritance()
|
/external/python/cpython2/Doc/extending/ |
D | newtypes.rst | 95 0, /* tp_hash */ 1382 hashfunc tp_hash;
|
/external/python/cpython3/Modules/ |
D | _testcapimodule.c | 378 if (type->tp_hash != PyType_Type.tp_hash) { in test_lazy_hash_inheritance()
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.6.rst | 1638 C level, extensions can set ``tp_hash`` to 3270 should define their ``tp_hash`` slot to
|
/external/python/cpython3/Doc/whatsnew/ |
D | 2.6.rst | 1642 C level, extensions can set ``tp_hash`` to 3274 should define their ``tp_hash`` slot to
|