]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-116738: Make csv module thread-safe (gh-141365)
authorAlper <alperyoney@fb.com>
Fri, 21 Nov 2025 16:22:31 +0000 (08:22 -0800)
committerGitHub <noreply@github.com>
Fri, 21 Nov 2025 16:22:31 +0000 (11:22 -0500)
commitfb26d9c2ef739cbfdc134da5ab89470511f1f5fd
treea2dc572ba68765724c7e4f2ae224958dc4b55182
parentf15f6d0ba3715c67643e58959459b0e84a67b183
gh-116738: Make csv module thread-safe (gh-141365)

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.
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