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-126417: Register multiprocessing proxy types to an appropriate collections.abc class#126419
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
tungol commented Nov 5, 2024 • edited by bedevere-app bot
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by bedevere-app bot
Uh oh!
There was an error while loading. Please reload this page.
ghost commented Nov 5, 2024 • edited by ghost
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by ghost
Uh oh!
There was an error while loading. Please reload this page.
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.
Thanks for contributing!
This needs a test--please add one making sure that isinstance works on these to Lib/test/_test_multiprocessing.py
Misc/NEWS.d/next/Library/2024-11-04-16-40-02.gh-issue-126417.OWPqn0.rst Outdated Show resolvedHide resolved
Uh oh!
There was an error while loading. Please reload this page.
…WPqn0.rst Co-authored-by: Peter Bierma <[email protected]>
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.
LGTM
AlexWaygood 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.
Thank you! This LGTM. I'll leave it a few days before merging in case Greg or anyone else wants to chime in — please ping me if it's been a week and this is still open!
AlexWaygood commented Nov 5, 2024
Thoughts from the other reviewers on whether this should be backported? It feels borderline between a feature and a bugfix to me... I lean towards backporting? It think it's quite low-risk. |
kumaraditya303 commented Nov 5, 2024
I am fine with backporting this |
Thanks @tungol for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Thanks @tungol for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Sorry, @tungol and @kumaraditya303, I could not cleanly backport this to |
Sorry, @tungol and @kumaraditya303, I could not cleanly backport this to |
…propriate collections.abc class (python#126419) (cherry-picked from commit 78842e4)
GH-126435 is a backport of this pull request to the 3.13 branch. |
…propriate collections.abc class (python#126419) (cherry-picked from commit 78842e4)
GH-126436 is a backport of this pull request to the 3.12 branch. |
…ate collections.abc class (#126419) (#126436) Co-authored-by: Stephen Morton <[email protected]>
…ate collections.abc class (#126419) (#126435) Co-authored-by: Stephen Morton <[email protected]>
…to an appropriate collections.abc class (python#126419) (python#126435)" This reverts commit c1e708a.
…to an appropriate collections.abc class (python#126419) (python#126436)" This reverts commit 47d48b6.
…te collections.abc class (python#126419)
…te collections.abc class (python#126419)
This MR registers BaseListProxy and _BaseDictProxy in
multiprocessing.managersto an appropriate ABC fromcollections.abc. This improves their consistency with the types they proxy.While I was here, I also updated the name of _BaseDictProxy so it's consistent with the variable that the type is assigned to. I think that kind of naming consistency is good, but it's less important and I can take that change out if it's not appropriate to include here.