]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-116738: Make grp module thread-safe (GH-135434) (#136658)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 15 Jul 2025 05:33:33 +0000 (07:33 +0200)
committerGitHub <noreply@github.com>
Tue, 15 Jul 2025 05:33:33 +0000 (11:03 +0530)
commit55eaaab8a4064ef76013a82c16c9991eba30dfeb
tree8d434abcb1dbad9a6b7deb089fdedee45b604578
parentbbbbb2e2d15794bfcaacfdf2bce43ca7032fe50f
[3.14] gh-116738: Make grp module thread-safe (GH-135434) (#136658)

gh-116738: Make grp module thread-safe (GH-135434)

Make grp module methods getgrgid() and getgrnam() thread-safe when the GIL is disabled and getgrgid_r()/getgrnam_r() C APIs are not available.
---------
(cherry picked from commit 9363703bd3bf86e363c14a02e3d729caf1e29f44)

Co-authored-by: Alper <alperyoney@fb.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Doc/library/test.rst
Lib/test/support/threading_helper.py
Lib/test/test_free_threading/test_grp.py [new file with mode: 0644]
Lib/test/test_free_threading/test_heapq.py
Misc/NEWS.d/next/Core_and_Builtins/2025-06-12-00-03-34.gh-issue-116738.iBBAdo.rst [new file with mode: 0644]
Modules/grpmodule.c
Tools/c-analyzer/cpython/ignored.tsv