Skip to content

Register multiprocessing proxy types to an appropriate collections.abc class #126417

Closed
@tungol

Description

@tungol

Feature or enhancement

Proposal:

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:

python/typeshed#12893

python/typeshed#12892

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibPython modules in the Lib dirtype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions