summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2014-05-03 23:32:11 (GMT)
committerRaymond Hettinger <python@rcn.com>2014-05-03 23:32:11 (GMT)
commit4b74fba62ff9e9733da01a55d4091b656324e969 (patch)
tree3cec3f8e3aac0f6f0e3fb30e1fa06c11c6a4e746 /Include
parent1b5eebcfa3e5d21c14e89dc7e5bf2d124f8710a2 (diff)
downloadcpython-4b74fba62ff9e9733da01a55d4091b656324e969.zip
cpython-4b74fba62ff9e9733da01a55d4091b656324e969.tar.gz
cpython-4b74fba62ff9e9733da01a55d4091b656324e969.tar.bz2
Issue 21101: Internal API for dict getitem and setitem where the hash value is known.
Diffstat (limited to 'Include')
-rw-r--r--Include/dictobject.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/dictobject.h b/Include/dictobject.h
index ef122bd..3e0544a 100644
--- a/Include/dictobject.h
+++ b/Include/dictobject.h
@@ -50,6 +50,8 @@ PyAPI_DATA(PyTypeObject) PyDictValues_Type;
PyAPI_FUNC(PyObject *) PyDict_New(void);
PyAPI_FUNC(PyObject *) PyDict_GetItem(PyObject *mp, PyObject *key);
+PyAPI_FUNC(PyObject *) _PyDict_GetItem_KnownHash(PyObject *mp, PyObject *key,
+ Py_hash_t hash);
PyAPI_FUNC(PyObject *) PyDict_GetItemWithError(PyObject *mp, PyObject *key);
PyAPI_FUNC(PyObject *) _PyDict_GetItemIdWithError(PyObject *dp,
struct _Py_Identifier *key);
@@ -58,6 +60,8 @@ PyAPI_FUNC(PyObject *) PyDict_SetDefault(
PyObject *mp, PyObject *key, PyObject *defaultobj);
#endif
PyAPI_FUNC(int) PyDict_SetItem(PyObject *mp, PyObject *key, PyObject *item);
+PyAPI_FUNC(int) _PyDict_SetItem_KnownHash(PyObject *mp, PyObject *key,
+ PyObject *item, Py_hash_t hash);
PyAPI_FUNC(int) PyDict_DelItem(PyObject *mp, PyObject *key);
PyAPI_FUNC(void) PyDict_Clear(PyObject *mp);
PyAPI_FUNC(int) PyDict_Next(