diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2016-12-27 13:19:20 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2016-12-27 13:19:20 (GMT) |
commit | e10ca3a0fe10d825689179e9958c70aef01f4230 (patch) | |
tree | f7dc9b56ba188d143a616062ec9e47f434aa32a3 /Include/dictobject.h | |
parent | 1fee5151f72e4e141eb37e7ab0da901d1b610f45 (diff) | |
download | cpython-e10ca3a0fe10d825689179e9958c70aef01f4230.zip cpython-e10ca3a0fe10d825689179e9958c70aef01f4230.tar.gz cpython-e10ca3a0fe10d825689179e9958c70aef01f4230.tar.bz2 |
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/dictobject.h b/Include/dictobject.h index ba90aaf..e0e1c26 100644 --- a/Include/dictobject.h +++ b/Include/dictobject.h @@ -75,6 +75,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( |