]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-116738: Make csv module thread-safe (gh-141365) (gh-141825)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 21 Nov 2025 16:47:13 +0000 (17:47 +0100)
committerGitHub <noreply@github.com>
Fri, 21 Nov 2025 16:47:13 +0000 (16:47 +0000)
commitaf586d8d2601b5fe52277ba7bf5d9e1ff93ffbb6
treecda89390866bd353d9b0a21089d2f476ece16d89
parent5398d088f454d81f6d9189f7bf657f655c8091a4
[3.14] gh-116738: Make csv module thread-safe (gh-141365) (gh-141825)

Added a critical section to protect the states of `ReaderObj` and `WriterObj` in the free-threading build. Without the critical sections, both new free-threading tests were crashing.
(cherry picked from commit fb26d9c2ef739cbfdc134da5ab89470511f1f5fd)

Co-authored-by: Alper <alperyoney@fb.com>
Lib/test/test_free_threading/test_csv.py [new file with mode: 0644]
Misc/NEWS.d/next/Core_and_Builtins/2025-11-10-00-14-20.gh-issue-116738.IxliC_.rst [new file with mode: 0644]
Modules/_csv.c