diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2016-12-27 13:23:43 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2016-12-27 13:23:43 (GMT) |
commit | d741ed492f17609109432f1bccac0c019a05471b (patch) | |
tree | 5b4425dfb7360f55993971d1b2fc9ebe7d1f00fa /Include | |
parent | 34d0ac8027e23609e24588735b37b8d5a55f7223 (diff) | |
parent | e10ca3a0fe10d825689179e9958c70aef01f4230 (diff) | |
download | cpython-d741ed492f17609109432f1bccac0c019a05471b.zip cpython-d741ed492f17609109432f1bccac0c019a05471b.tar.gz cpython-d741ed492f17609109432f1bccac0c019a05471b.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 30f114e..6ef5e03 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( |