]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-116738: Make _bz2 module thread-safe (gh-142756)
authorAlper <alperyoney@fb.com>
Mon, 15 Dec 2025 17:47:04 +0000 (09:47 -0800)
committerGitHub <noreply@github.com>
Mon, 15 Dec 2025 17:47:04 +0000 (12:47 -0500)
commit1a9cdaf63af7014dd7bd852b4d8a8c0ab98387ab
tree2255c7d810a25e4ea9c7e249c2c418192ab3558e
parenta882ae198ade5008d42b8474a37409bf1502cf74
gh-116738: Make _bz2 module thread-safe (gh-142756)

Make the attributes in _bz2 module thread-safe on the free-threading build.
Attributes (eof, needs_input, unused_data) are now stored atomically or
accessed via mutex-protected getters.
Lib/test/test_free_threading/test_bz2.py
Misc/NEWS.d/next/Core_and_Builtins/2025-12-15-03-20-24.gh-issue-116738.NNHiTK.rst [new file with mode: 0644]
Modules/_bz2module.c