]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-140544: Always assume that thread locals are available (GH-140690)
authorPeter Bierma <zintensitydev@gmail.com>
Tue, 28 Oct 2025 13:07:19 +0000 (09:07 -0400)
committerGitHub <noreply@github.com>
Tue, 28 Oct 2025 13:07:19 +0000 (09:07 -0400)
commit2cefa70eb92321c39f7d66bd862b2f66cd06f0fa
tree36945371484b69ab5001a9540fb754760314d95e
parent88ad41fa3434444a8f316310bffde50e004156ce
gh-140544: Always assume that thread locals are available (GH-140690)

Python has required thread local support since 3.12 (see GH-103324). By assuming that thread locals are always supported, we can improve the performance of third-party extensions by allowing them to access the attached thread and interpreter states directly.
Include/pyport.h
Python/import.c
Python/pystate.c