You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Register multiprocessing proxy types to an appropriate collections.abc class #126417
For consistency with the types that they proxy, I believe that multiprocessing.managers.ListProxy should be registered to collections.abc.MutableSequence and multiprocessing.managers.DictProxy should be registered to collections.abc.MutableMapping. This could be done by registering either those types themselves or by registering their base classes, BaseListProxy and _BaseDictProxy.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
I discovered that these weren't registered to their ABCs while working on typeshed, so a little previous discussion occurred in issues in that repo:
FYI - The backports of the validation test don't work on 3.13 or earlier because ListProxy in those versions does not have the methods added to 3.14 by #103133.
(We're not reverting it for 3.14+, it's a good change! But there were concerns raised in #126451 over whether it was a good idea to backport this kind of change, and I think those concerns were reasonable.)
Activity
gh-126417: Register multiprocessing proxy types to an appropriate col…
[3.13] pythongh-126417: Register multiprocessing proxy types to an ap…
[3.12] pythongh-126417: Register multiprocessing proxy types to an ap…
[3.12] gh-126417: Register multiprocessing proxy types to an appropri…
[3.13] gh-126417: Register multiprocessing proxy types to an appropri…
AlexWaygood commentedon Nov 5, 2024
Thanks @tungol!
gh-126417: validate ABC methods on multiprocessing proxy types (#126454)
pythongh-126417: validate ABC methods on multiprocessing proxy types (p…
pythongh-126417: validate ABC methods on multiprocessing proxy types (p…
gpshead commentedon Nov 11, 2024
FYI - The backports of the validation test don't work on 3.13 or earlier because ListProxy in those versions does not have the methods added to 3.14 by #103133.
I'll close those backports.
Revert "[3.13] pythongh-126417: Register multiprocessing proxy types …
Revert "[3.12] pythongh-126417: Register multiprocessing proxy types …
AlexWaygood commentedon Nov 12, 2024
The backports of the original PR are being reverted in:
contextvars.Contextand multiprocessing proxies #126734(We're not reverting it for 3.14+, it's a good change! But there were concerns raised in #126451 over whether it was a good idea to backport this kind of change, and I think those concerns were reasonable.)
pythongh-126417: Register multiprocessing proxy types to an appropria…
pythongh-126417: validate ABC methods on multiprocessing proxy types (p…
pythongh-126417: Register multiprocessing proxy types to an appropria…
pythongh-126417: validate ABC methods on multiprocessing proxy types (p…