]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-132713: Fix repr(list) race condition (#132801) (#132809)
authorVictor Stinner <vstinner@python.org>
Wed, 23 Apr 2025 13:44:33 +0000 (15:44 +0200)
committerGitHub <noreply@github.com>
Wed, 23 Apr 2025 13:44:33 +0000 (15:44 +0200)
commit3de0f55f3410ae835923d10ae098558900a9a121
treebcddaff27d9ed04453b9ab6c8347db4fc6f29b9d
parent3a130c17862de586411274dcc3176a73834902e2
[3.13] gh-132713: Fix repr(list) race condition (#132801) (#132809)

Hold a strong reference to the item while calling repr(item).

(cherry picked from commit a4ea80d52394bafffb2257abbe815c7ffdb003a3)
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