]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-116738: Make pwd module thread-safe (#136695)
authorAlper <alperyoney@fb.com>
Thu, 17 Jul 2025 16:16:01 +0000 (09:16 -0700)
committerGitHub <noreply@github.com>
Thu, 17 Jul 2025 16:16:01 +0000 (09:16 -0700)
commiteddc8c0a1d274ff6393c6fa233e535360c0dd07b
tree4d9e2e20a75bea0c4e7852915443e05cf41746dd
parent22af5d35a620ee44393853036a8450ceb047688e
gh-116738: Make pwd module thread-safe (#136695)

Make the pwd module functions getpwuid(), getpwnam(), and getpwall() thread-safe. These changes apply to scenarios where the GIL is disabled or in subinterpreter use cases.
Lib/test/test_free_threading/test_pwd.py [new file with mode: 0644]
Misc/NEWS.d/next/Core_and_Builtins/2025-07-15-10-03-57.gh-issue-116738.oFttKl.rst [new file with mode: 0644]
Modules/clinic/pwdmodule.c.h
Modules/pwdmodule.c
Tools/c-analyzer/cpython/ignored.tsv