diff options
author | Kumar Aditya <kumaraditya@python.org> | 2024-10-13 15:35:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-13 15:35:05 (GMT) |
commit | cd0f9d111a040ad863c680e9f464419640c8c3fd (patch) | |
tree | 8bb24147b6b0e69f406286ee456817fb50e9026a /Misc/NEWS.d | |
parent | 08489325d1cd94eba97c5f5f8cac49521fd0b0d7 (diff) | |
download | cpython-cd0f9d111a040ad863c680e9f464419640c8c3fd.zip cpython-cd0f9d111a040ad863c680e9f464419640c8c3fd.tar.gz cpython-cd0f9d111a040ad863c680e9f464419640c8c3fd.tar.bz2 |
gh-89967: make WeakKeyDictionary and WeakValueDictionary thread safe (#125325)
Make `WeakKeyDictionary` and `WeakValueDictionary` thread safe by copying the underlying the dict before iterating over it.
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/Library/2024-10-11-16-19-46.gh-issue-89967.vhWUOR.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-10-11-16-19-46.gh-issue-89967.vhWUOR.rst b/Misc/NEWS.d/next/Library/2024-10-11-16-19-46.gh-issue-89967.vhWUOR.rst new file mode 100644 index 0000000..d086045 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-10-11-16-19-46.gh-issue-89967.vhWUOR.rst @@ -0,0 +1 @@ +Make :class:`~weakref.WeakKeyDictionary` and :class:`~weakref.WeakValueDictionary` safe against concurrent mutations from other threads. Patch by Kumar Aditya. |