-
-
Notifications
You must be signed in to change notification settings - Fork 31.2k
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
gh-126417: Register multiprocessing proxy types to an appropriate collections.abc class #126419
Conversation
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 resolved
Hide resolved
…WPqn0.rst Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
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
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!
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. |
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. |
…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.managers
to 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.