Home
last modified time | relevance | path

Searched refs:dict_getitem_knownhash (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_dict.py1261 from _testcapi import dict_getitem_knownhash
1264 self.assertEqual(dict_getitem_knownhash(d, 'x', hash('x')), 1)
1265 self.assertEqual(dict_getitem_knownhash(d, 'y', hash('y')), 2)
1266 self.assertEqual(dict_getitem_knownhash(d, 'z', hash('z')), 3)
1269 self.assertRaises(SystemError, dict_getitem_knownhash, [], 1, hash(1))
1271 self.assertRaises(KeyError, dict_getitem_knownhash, {}, 1, hash(1))
1282 self.assertEqual(dict_getitem_knownhash(d, k1, hash(k1)), 1)
1283 self.assertRaises(Exc, dict_getitem_knownhash, d, k2, hash(k2))
/external/python/cpython3/Modules/
D_testcapimodule.c240 dict_getitem_knownhash(PyObject *self, PyObject *args) in dict_getitem_knownhash() function
4596 {"dict_getitem_knownhash", dict_getitem_knownhash, METH_VARARGS},