diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2016-12-27 14:23:43 +0100 |
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2016-12-27 14:23:43 +0100 |
| commit | d741ed492f17609109432f1bccac0c019a05471b (patch) | |
| tree | 5b4425dfb7360f55993971d1b2fc9ebe7d1f00fa /Include/dictobject.h | |
| parent | 34d0ac8027e23609e24588735b37b8d5a55f7223 (diff) | |
| parent | e10ca3a0fe10d825689179e9958c70aef01f4230 (diff) | |
| download | cpython-git-d741ed492f17609109432f1bccac0c019a05471b.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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/dictobject.h b/Include/dictobject.h index 30f114e49c..6ef5e0323c 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( |
