Lines Matching defs:hash
753 from being called more than once. In the C version, the "known hash"
764 Py_hash_t hash;
896 Py_hash_t hash;
900 hash = PyObject_Hash(key);
901 if (hash == -1) {
905 result = _PyDict_GetItem_KnownHash(self->cache, key, hash);
922 if (_PyDict_SetItem_KnownHash(self->cache, key, result, hash) < 0) {
967 In all four calls, we have a known hash which lets use avoid a call
979 when some other entry happens to have an exactly matching hash (all
996 Py_hash_t hash;
1001 hash = PyObject_Hash(key);
1002 if (hash == -1) {
1006 link = (lru_list_elem *)_PyDict_GetItem_KnownHash(self->cache, key, hash);
1026 testresult = _PyDict_GetItem_KnownHash(self->cache, key, hash);
1060 link->hash = hash;
1069 hash) < 0) {
1100 link->hash, Py_None);
1129 link->hash = hash;
1138 hash) < 0) {