]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-129068: Make range iterators thread-safe (gh-142886)
authorSam Gross <colesbury@gmail.com>
Thu, 18 Dec 2025 18:11:51 +0000 (13:11 -0500)
committerGitHub <noreply@github.com>
Thu, 18 Dec 2025 18:11:51 +0000 (13:11 -0500)
commitf54d44d3331ef0bc19f1437f32ffde2e49c07c22
treecf2c15729db0c1967808de2d773287a13b75d6cc
parente22c49522bd119d2d2690989ea269e2f5a3009db
gh-129068: Make range iterators thread-safe (gh-142886)

Now that we specialize range iteration in the interpreter for the common
case where the iterator has only one reference, there's not a
significant performance cost to making the iteration thread-safe.
Misc/NEWS.d/next/Core_and_Builtins/2025-12-17-10-49-03.gh-issue-129068.GlYnrO.rst [new file with mode: 0644]
Objects/clinic/rangeobject.c.h [new file with mode: 0644]
Objects/rangeobject.c
Tools/tsan/suppressions_free_threading.txt