summaryrefslogtreecommitdiff
path: root/Include/dictobject.h
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2016-12-27 14:34:54 +0100
committerAntoine Pitrou <solipsis@pitrou.net>2016-12-27 14:34:54 +0100
commitc06ae208ebd55ff261438385c4179023f2df0388 (patch)
treefbf18b5e4e539f2fc4ca50c36023b43b6f62ee41 /Include/dictobject.h
parenta171a03bd23c0fb9b424cce879d4c0b53fc331f6 (diff)
parentd741ed492f17609109432f1bccac0c019a05471b (diff)
downloadcpython-git-c06ae208ebd55ff261438385c4179023f2df0388.tar.gz
Issue #28427: old keys should not remove new values from
WeakValueDictionary when collecting from another thread.
Diffstat (limited to 'Include/dictobject.h')
-rw-r--r--Include/dictobject.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/dictobject.h b/Include/dictobject.h
index 885694b491..fd423a38d2 100644
--- a/Include/dictobject.h
+++ b/Include/dictobject.h
@@ -88,6 +88,8 @@ 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);
+PyAPI_FUNC(int) _PyDict_DelItemIf(PyObject *mp, PyObject *key,
+ int (*predicate)(PyObject *value));
#endif
PyAPI_FUNC(void) PyDict_Clear(PyObject *mp);
PyAPI_FUNC(int) PyDict_Next(