Home
last modified time | relevance | path

Searched refs:tp_hash (Results 1 – 22 of 22) sorted by relevance

/external/python/cpython2/Doc/includes/
Dtypestruct.h23 hashfunc tp_hash; member
/external/python/cpython3/Doc/includes/
Dtypestruct.h24 hashfunc tp_hash; member
/external/python/cpython3/Objects/
Dtypeslots.inc60 offsetof(PyHeapTypeObject, ht_type.tp_hash),
Dobject.c764 if (tp->tp_hash != NULL) in PyObject_Hash()
765 return (*tp->tp_hash)(v); in PyObject_Hash()
774 if (tp->tp_hash != NULL) in PyObject_Hash()
775 return (*tp->tp_hash)(v); in PyObject_Hash()
Dtypeobject.c4841 type->tp_hash == NULL && in inherit_slots()
4845 type->tp_hash = base->tp_hash; in inherit_slots()
5054 if (type->tp_hash == NULL) { in PyType_Ready()
5058 type->tp_hash = PyObject_HashNotImplemented; in PyType_Ready()
6148 h = PyLong_Type.tp_hash(res); in slot_tp_hash()
6557 TPSLOT("__hash__", tp_hash, slot_tp_hash, wrap_hashfunc,
6888 ptr == (void**)&type->tp_hash) { in update_one_slot()
/external/python/cpython2/Objects/
Dobject.c1108 if (tp->tp_hash != NULL) in PyObject_Hash()
1109 return (*tp->tp_hash)(v); in PyObject_Hash()
1118 if (tp->tp_hash != NULL) in PyObject_Hash()
1119 return (*tp->tp_hash)(v); in PyObject_Hash()
Dtypeobject.c3996 type->tp_hash == NULL)
4000 type->tp_hash = base->tp_hash;
4003 if (base->tp_hash &&
4004 (base->tp_hash != PyObject_HashNotImplemented) &&
5511 h = PyLong_Type.tp_hash(res);
5985 TPSLOT("__hash__", tp_hash, slot_tp_hash, wrap_hashfunc,
6314 ptr == (void**)&type->tp_hash) {
Dclassobject.c1015 outcome = res->ob_type->tp_hash(res); in instance_hash()
/external/python/cpython2/Doc/c-api/
Dtypeobj.rst268 …: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*.
Dobject.rst316 This function receives special treatment when stored in a ``tp_hash`` slot,
/external/python/cpython3/Doc/c-api/
Dtypeobj.rst287 .. c:member:: hashfunc PyTypeObject.tp_hash
304 the Python level will result in the ``tp_hash`` slot being set to
312 … :c:member:`~PyTypeObject.tp_richcompare` and :c:member:`~PyTypeObject.tp_hash`, when the subtype's
313 :c:member:`~PyTypeObject.tp_richcompare` and :c:member:`~PyTypeObject.tp_hash` are both *NULL*.
602 This field is inherited by subtypes together with :c:member:`~PyTypeObject.tp_hash`:
603 …a subtype inherits :c:member:`~PyTypeObject.tp_richcompare` and :c:member:`~PyTypeObject.tp_hash` …
604 …the subtype's :c:member:`~PyTypeObject.tp_richcompare` and :c:member:`~PyTypeObject.tp_hash` are b…
Dobject.rst325 This function receives special treatment when stored in a ``tp_hash`` slot,
/external/python/cpython2/Include/
Dobject.h346 hashfunc tp_hash; member
/external/python/cpython3/Include/
Dobject.h369 hashfunc tp_hash; member
/external/python/cpython2/Modules/
D_testcapimodule.c273 if (type->tp_hash != PyType_Type.tp_hash) { in test_lazy_hash_inheritance()
/external/python/cpython3/Modules/
D_testcapimodule.c369 if (type->tp_hash != PyType_Type.tp_hash) { in test_lazy_hash_inheritance()
/external/python/cpython3/Doc/extending/
Dnewtypes.rst92 0, /* tp_hash */
1317 hashfunc tp_hash;
/external/python/cpython2/Doc/extending/
Dnewtypes.rst96 0, /*tp_hash */
1378 hashfunc tp_hash;
/external/python/cpython2/Doc/whatsnew/
D2.6.rst1638 C level, extensions can set ``tp_hash`` to
3270 should define their ``tp_hash`` slot to
/external/python/cpython3/Doc/whatsnew/
D2.6.rst1642 C level, extensions can set ``tp_hash`` to
3274 should define their ``tp_hash`` slot to
/external/python/cpython2/Misc/
DNEWS7628 the tp_hash and tp_dict slots are both NULL.
9482 interaction with the tp_hash slot (added in 2.6b2) are now documented
9516 the Python level, or tp_hash=PyObject_HashNotImplemented at the C
/external/python/cpython3/Misc/
DHISTORY15330 where the tp_hash and tp_dict slots are both NULL.