]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-132713: Fix repr(list) race condition (#132801)
authorVictor Stinner <vstinner@python.org>
Tue, 22 Apr 2025 20:09:35 +0000 (22:09 +0200)
committerGitHub <noreply@github.com>
Tue, 22 Apr 2025 20:09:35 +0000 (22:09 +0200)
commita4ea80d52394bafffb2257abbe815c7ffdb003a3
tree156ec0e013274208a18fdcb91b2497c5a9c3e187
parent722c501dba2db391012aa1530144ecdfbddec9e8
gh-132713: Fix repr(list) race condition (#132801)

Hold a strong reference to the item while calling repr(item).
Lib/test/test_list.py
Misc/NEWS.d/next/Core_and_Builtins/2025-04-22-16-38-43.gh-issue-132713.mBWTSZ.rst [new file with mode: 0644]
Objects/listobject.c