diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2016-12-27 13:34:54 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2016-12-27 13:34:54 (GMT) |
commit | c06ae208ebd55ff261438385c4179023f2df0388 (patch) | |
tree | fbf18b5e4e539f2fc4ca50c36023b43b6f62ee41 /Include | |
parent | a171a03bd23c0fb9b424cce879d4c0b53fc331f6 (diff) | |
parent | d741ed492f17609109432f1bccac0c019a05471b (diff) | |
download | cpython-c06ae208ebd55ff261438385c4179023f2df0388.zip cpython-c06ae208ebd55ff261438385c4179023f2df0388.tar.gz cpython-c06ae208ebd55ff261438385c4179023f2df0388.tar.bz2 |
Issue #28427: old keys should not remove new values from
WeakValueDictionary when collecting from another thread.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/dictobject.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/dictobject.h b/Include/dictobject.h index 885694b..fd423a3 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( |