Home
last modified time | relevance | path

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

/third_party/python/Doc/includes/
Dtypestruct.h24 hashfunc tp_hash; member
/third_party/python/Python/
Dcontext.c720 .tp_hash = PyObject_HashNotImplemented,
1070 .tp_hash = (hashfunc)contextvar_tp_hash,
1211 .tp_hash = PyObject_HashNotImplemented,
Dhamt.c2908 .tp_hash = PyObject_HashNotImplemented,
2925 .tp_hash = PyObject_HashNotImplemented,
2938 .tp_hash = PyObject_HashNotImplemented,
2951 .tp_hash = PyObject_HashNotImplemented,
/third_party/python/Objects/
Dtypeslots.inc60 {-1, offsetof(PyTypeObject, tp_hash)},
Dobject.c788 if (tp->tp_hash != NULL) in PyObject_Hash()
789 return (*tp->tp_hash)(v); in PyObject_Hash()
798 if (tp->tp_hash != NULL) in PyObject_Hash()
799 return (*tp->tp_hash)(v); in PyObject_Hash()
Dunionobject.c459 .tp_hash = union_hash,
Dgenericaliasobject.c644 .tp_hash = ga_hash,
Dtypeobject.c5896 type->tp_hash == NULL) in inherit_slots()
5904 type->tp_hash = base->tp_hash; in inherit_slots()
6230 if (type->tp_hash != NULL) { in type_ready_set_hash()
6245 type->tp_hash = PyObject_HashNotImplemented; in type_ready_set_hash()
7463 h = PyLong_Type.tp_hash(res); in slot_tp_hash()
7913 TPSLOT("__hash__", tp_hash, slot_tp_hash, wrap_hashfunc,
8311 ptr == (void**)&type->tp_hash) { in update_one_slot()
/third_party/python/Doc/c-api/
Dtypeobj.rst70 …| :c:member:`~PyTypeObject.tp_hash` | :c:type:`hashfunc` | __hash__ …
867 .. c:member:: hashfunc PyTypeObject.tp_hash
876 Py_hash_t tp_hash(PyObject *);
891 the Python level will result in the ``tp_hash`` slot being set to
896 Group: :attr:`tp_hash`, :attr:`tp_richcompare`
900 … :c:member:`~PyTypeObject.tp_richcompare` and :c:member:`~PyTypeObject.tp_hash`, when the subtype's
901 :c:member:`~PyTypeObject.tp_richcompare` and :c:member:`~PyTypeObject.tp_hash` are both ``NULL``.
1471 Group: :attr:`tp_hash`, :attr:`tp_richcompare`
1473 This field is inherited by subtypes together with :c:member:`~PyTypeObject.tp_hash`:
1474 …a subtype inherits :c:member:`~PyTypeObject.tp_richcompare` and :c:member:`~PyTypeObject.tp_hash` …
[all …]
Dobject.rst266 This function receives special treatment when stored in a ``tp_hash`` slot,
/third_party/python/Include/cpython/
Dobject.h214 hashfunc tp_hash; member
/third_party/python/Doc/extending/
Dnewtypes.rst461 hashfunc tp_hash;
477 Returning ``-1`` from :c:member:`~PyTypeObject.tp_hash` indicates an error,
/third_party/python/Modules/
D_testcapimodule.c456 if (type->tp_hash != PyType_Type.tp_hash) { in test_lazy_hash_inheritance()
/third_party/python/Doc/whatsnew/
D2.6.rst1642 C level, extensions can set ``tp_hash`` to
3274 should define their ``tp_hash`` slot to
/third_party/python/Misc/
DHISTORY15330 where the tp_hash and tp_dict slots are both NULL.