Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
gh-116738: Make grp module thread-safe#135434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Conversation
yoney commented Jun 12, 2025 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
yoney commented Jun 12, 2025
Note: I am not sure if there is a CI setup where |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
bedevere-bot commented Jun 16, 2025
🤖 New build scheduled with the buildbot fleet by @colesbury for commit 269b454 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F135434%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
Uh oh!
There was an error while loading. Please reload this page.
mpage commented Jun 26, 2025
@yoney - Can you merge main and fix up the conflicts? |
yoney commented Jun 26, 2025
I rebased and force push but I think this is not the right way, I should have merged the main on top of my branch, I am sorry. |
mpage commented Jun 26, 2025
No worries! |
ZeroIntensity left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The core changes look good to me, just a few comments about the new threading_helper function.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Misc/NEWS.d/next/Core_and_Builtins/2025-06-12-00-03-34.gh-issue-116738.iBBAdo.rst Outdated Show resolvedHide resolved
Uh oh!
There was an error while loading. Please reload this page.
…e-116738.iBBAdo.rst
yoney commented Jul 14, 2025
@kumaraditya303 Thank you for the review! |
9363703 into python:mainUh oh!
There was an error while loading. Please reload this page.
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 9363703) Co-authored-by: Alper <alperyoney@fb.com> Co-authored-by: Kumar Aditya <kumaraditya@python.org>
GH-136658 is a backport of this pull request to the 3.14 branch. |
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 9363703) Co-authored-by: Alper <alperyoney@fb.com> Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Make grp module methods getgrgid() and getgrnam() thread-safe when the GIL is disabled and getgrgid_r()/getgrnam_r() C APIs are not available. --------- Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Make grp module methods getgrgid() and getgrnam() thread-safe when the GIL is disabled and getgrgid_r()/getgrnam_r() C APIs are not available. --------- Co-authored-by: Kumar Aditya <kumaraditya@python.org>
…python#136658) pythongh-116738: Make grp module thread-safe (pythonGH-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 9363703) Co-authored-by: Alper <alperyoney@fb.com> Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Make
grpmodule methodsgetgrgid()andgetgrnam()thread-safe when the GIL is disabled andgetgrgid_r()/getgrnam_r()C APIs are not available.run_concurrently()totest.support.threading_helperto resuse across multiple tests.cc: @mpage@colesbury@Yhg1s