Skip to content

gh-142740: Fix ABC registration for SetProxy in multiprocessing.managers - #142741

Open
hyongtao-code wants to merge 7 commits into
python:mainfrom
hyongtao-code:fix-mp
Open

gh-142740: Fix ABC registration for SetProxy in multiprocessing.managers#142741
hyongtao-code wants to merge 7 commits into
python:mainfrom
hyongtao-code:fix-mp

Conversation

@hyongtao-code

@hyongtao-code hyongtao-code commented Dec 15, 2025

Copy link
Copy Markdown
Contributor

Register _BaseSetProxy as MutableSet instead of MutableMapping. SetProxy implements set semantics and does not implement the mapping protocol, so the previous ABC registration caused incorrect type classification.

Register _BaseSetProxy as MutableSet instead of MutableMapping.
SetProxy implements set semantics and does not implement the mapping
protocol, so the previous ABC registration caused incorrect type
classification.

Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com>
@aisk

aisk commented Dec 15, 2025

Copy link
Copy Markdown
Member

This change should have a news entry because it affects users.

If this change is correct, I also think we need to add a test to ensure we don’t break it in the future.

@hyongtao-code

hyongtao-code commented Dec 18, 2025

Copy link
Copy Markdown
Contributor Author

Hi, thanks for the review. I’ve added both a news entry and a test case. I believe this case demonstrates that the code change's logic is correct.

@hyongtao-code
hyongtao-code marked this pull request as draft December 18, 2025 12:48
@hyongtao-code
hyongtao-code marked this pull request as ready for review December 18, 2025 13:49
@github-actions

github-actions Bot commented May 3, 2026

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label May 3, 2026
Comment thread Lib/test/_test_multiprocessing.py
Comment thread Misc/NEWS.d/next/Library/2025-12-18-10-37-01.gh-issue-142740.Di48Rf.rst Outdated
hyongtao-code and others added 2 commits August 28, 2026 21:51
Co-authored-by: An Long <aisk@users.noreply.github.com>
Removed no need tests for mutable set from the multiprocessing test suite.
@aisk aisk added 3.14 bugs and security fixes needs backport to 3.14 bugs and security fixes and removed 3.14 bugs and security fixes labels Aug 28, 2026
@read-the-docs-community

Copy link
Copy Markdown

@aisk aisk added needs backport to 3.15 pre-release feature fixes, bugs and security fixes and removed stale Stale PR or inactive for long period of time. labels Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants