Searched refs:tp_hash (Results 1 – 15 of 15) sorted by relevance
/third_party/python/Doc/includes/ |
D | typestruct.h | 24 hashfunc tp_hash; member
|
/third_party/python/Python/ |
D | context.c | 720 .tp_hash = PyObject_HashNotImplemented, 1070 .tp_hash = (hashfunc)contextvar_tp_hash, 1211 .tp_hash = PyObject_HashNotImplemented,
|
D | hamt.c | 2908 .tp_hash = PyObject_HashNotImplemented, 2925 .tp_hash = PyObject_HashNotImplemented, 2938 .tp_hash = PyObject_HashNotImplemented, 2951 .tp_hash = PyObject_HashNotImplemented,
|
/third_party/python/Objects/ |
D | typeslots.inc | 60 {-1, offsetof(PyTypeObject, tp_hash)},
|
D | object.c | 788 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()
|
D | unionobject.c | 459 .tp_hash = union_hash,
|
D | genericaliasobject.c | 644 .tp_hash = ga_hash,
|
D | typeobject.c | 5896 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/ |
D | typeobj.rst | 70 …| :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 …]
|
D | object.rst | 266 This function receives special treatment when stored in a ``tp_hash`` slot,
|
/third_party/python/Include/cpython/ |
D | object.h | 214 hashfunc tp_hash; member
|
/third_party/python/Doc/extending/ |
D | newtypes.rst | 461 hashfunc tp_hash; 477 Returning ``-1`` from :c:member:`~PyTypeObject.tp_hash` indicates an error,
|
/third_party/python/Modules/ |
D | _testcapimodule.c | 456 if (type->tp_hash != PyType_Type.tp_hash) { in test_lazy_hash_inheritance()
|
/third_party/python/Doc/whatsnew/ |
D | 2.6.rst | 1642 C level, extensions can set ``tp_hash`` to 3274 should define their ``tp_hash`` slot to
|
/third_party/python/Misc/ |
D | HISTORY | 15330 where the tp_hash and tp_dict slots are both NULL.
|