You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
str.maketrans on a mutating dict is not thread-safe #145142
Activity
colesbury commentedon Feb 23, 2026
Yes,
PyDict_Nextisn't thread-safe if there are concurrent modifications of the dict. We should wrap the loop with a critical section onxhere.Do you want to make the change?
eendebakpt commentedon Feb 23, 2026
I am adding the easy label for newcomers. If not picked up, I will make the change.
VanshAgarwal24036 commentedon Feb 23, 2026
I am working on this issue.
pythongh-145142: Make str.maketrans safe under free-threading
Merge branch 'main' into pythongh-145142-dict-next-critical-section
Merge remote-tracking branch 'upstream/main' into pythongh-145142-dic…
Merge branch 'main' into pythongh-145142-dict-next-critical-section
pythongh-145142: Make str.maketrans safe under free-threading
Merge branch 'main' into pythongh-145142-dict-next-critical-section
gh-145142: Make str.maketrans safe under free-threading (gh-145157)
pythongh-145142: Make str.maketrans safe under free-threading (python…
[3.14] gh-145142: Make str.maketrans safe under free-threading (gh-14…
pythongh-145142: Make str.maketrans safe under free-threading (python…
pythongh-145142: Make str.maketrans safe under free-threading (python…