]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13][3.15] gh-143008: Fix race re-initializing TextIOWrapper (#151203) (#151227)
authorVictor Stinner <vstinner@python.org>
Wed, 10 Jun 2026 09:40:14 +0000 (11:40 +0200)
committerGitHub <noreply@github.com>
Wed, 10 Jun 2026 09:40:14 +0000 (09:40 +0000)
commitc40e6d6ebb8d4ae39fa1de9a9e1cfddb832558b4
tree13afbb43836c98decb797cd361177aa3338934c0
parent78ed7ff8990d2242cc365448759349364da0bc55
[3.13][3.15] gh-143008: Fix race re-initializing TextIOWrapper (#151203) (#151227)

[3.15] gh-143008: Fix race re-initializing TextIOWrapper (#151203)

__init__() changes multiple variables and may be called more than once
from multiple threads.

(cherry picked from commit 0318867acf72e3acf78f480db73a69982573263a)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
Misc/NEWS.d/next/Library/2026-06-04-18-22-56.gh-issue-143008.z5tw-J.rst [new file with mode: 0644]
Modules/_io/clinic/textio.c.h
Modules/_io/textio.c