summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-10-02 09:47:59 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-10-02 09:47:59 (GMT)
commit5dbe245ef238762c8e1100885e8671bf2e089157 (patch)
treefdbbc3e62591f49891469af452f03d55681e76a7 /Include
parent30b7138fe12be2896a53993b308664fddbe32a3a (diff)
parentb9d98d532cb9bdebff9854eaff91fea13769a595 (diff)
downloadcpython-5dbe245ef238762c8e1100885e8671bf2e089157.zip
cpython-5dbe245ef238762c8e1100885e8671bf2e089157.tar.gz
cpython-5dbe245ef238762c8e1100885e8671bf2e089157.tar.bz2
Issue #24483: C implementation of functools.lru_cache() now calculates key's
hash only once.
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 320f9ec..80bd330 100644
--- a/Include/dictobject.h
+++ b/Include/dictobject.h
@@ -72,6 +72,10 @@ PyAPI_FUNC(int) _PyDict_SetItem_KnownHash(PyObject *mp, PyObject *key,
PyObject *item, Py_hash_t hash);
#endif
PyAPI_FUNC(int) PyDict_DelItem(PyObject *mp, PyObject *key);
+#ifndef Py_LIMITED_API
+PyAPI_FUNC(int) _PyDict_DelItem_KnownHash(PyObject *mp, PyObject *key,
+ Py_hash_t hash);
+#endif
PyAPI_FUNC(void) PyDict_Clear(PyObject *mp);
PyAPI_FUNC(int) PyDict_Next(
PyObject *mp, Py_ssize_t *pos, PyObject **key, PyObject **value);