]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-89967: make WeakKeyDictionary and WeakValueDictionary thread safe (#125325)
authorKumar Aditya <kumaraditya@python.org>
Sun, 13 Oct 2024 15:35:05 +0000 (21:05 +0530)
committerGitHub <noreply@github.com>
Sun, 13 Oct 2024 15:35:05 +0000 (21:05 +0530)
commitcd0f9d111a040ad863c680e9f464419640c8c3fd
tree8bb24147b6b0e69f406286ee456817fb50e9026a
parent08489325d1cd94eba97c5f5f8cac49521fd0b0d7
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.
Lib/_weakrefset.py
Lib/weakref.py
Misc/NEWS.d/next/Library/2024-10-11-16-19-46.gh-issue-89967.vhWUOR.rst [new file with mode: 0644]