Skip to content

Conversation

@yoney
Copy link
Contributor

@yoneyyoney commented Jul 15, 2025

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.

cc: @mpage@colesbury@Yhg1s

@yoney
Copy link
ContributorAuthor

Note: I am not sure if there is a CI setup where getpwuid_r()/getpwnam_r() are not available. I tested those manually on my local machine.

@yoneyyoney marked this pull request as ready for review July 15, 2025 22:59
@mpagempage requested review from Yhg1s, colesbury and mpageJuly 16, 2025 17:06
Copy link
Contributor

@mpagempage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! I'll wait to merge for a day or two to give other folks a chance to look.

@mpagempage merged commit eddc8c0 into python:mainJul 17, 2025
49 checks passed
taegyunkim pushed a commit to taegyunkim/cpython that referenced this pull request Aug 4, 2025
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.
Agent-Hellboy pushed a commit to Agent-Hellboy/cpython that referenced this pull request Aug 19, 2025
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.
@yoneyyoney deleted the ft_pwdmodule branch October 19, 2025 03:02
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@yoney@mpage@colesbury@kumaraditya303