Skip to content

inheritance for multiprocessing.managers.BaseListProxy - #12892

Closed
tungol wants to merge 2 commits into
python:mainfrom
tungol:multiprocessing
Closed

inheritance for multiprocessing.managers.BaseListProxy#12892
tungol wants to merge 2 commits into
python:mainfrom
tungol:multiprocessing

Conversation

@tungol

Copy link
Copy Markdown
Contributor

This is similar to #12873

BaseListProxy doesn't inherit from MutableSequence, and MutableSequence.register(BaseListProxy) doesn't happen either.

It's not missing any of the abstract methods, so in theory it could be registered. It is missing the mix-in methods __iter__ and __iadd__. It's also missing clear and copy, but those have been added to to the 3.13 branch of cpython.

Let's see what this looks like.

@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@tungol

Copy link
Copy Markdown
ContributorAuthor

This is now fixed in cpython for 3.12 and up. It probably doesn't make sense to branch for the sake of 3.8 to 3.11.

@tungoltungol closed this Nov 6, 2024
@tungol
tungol deleted the multiprocessing branch November 7, 2024 21:28
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@tungol@srittau