]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-143008: Fix race re-initializing TextIOWrapper (GH-151203) (#151226)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 10 Jun 2026 09:41:47 +0000 (11:41 +0200)
committerGitHub <noreply@github.com>
Wed, 10 Jun 2026 09:41:47 +0000 (09:41 +0000)
commita4bdc218d5429fc91b9824dfa1efff6e729127f5
treee16f1e74d2949c29bd0329d76224185daabdd558
parent51e83ca706d04878e0f6f0bf8030e0dd2f7585a6
[3.14] gh-143008: Fix race re-initializing TextIOWrapper (GH-151203) (#151226)

[3.15] gh-143008: Fix race re-initializing TextIOWrapper (GH-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