René's URL Explorer Experiment


Title: Share exception group construction and filtering controls by youknowdot · Pull Request #9588 · RustPython/RustPython · GitHub

Open Graph Title: Share exception group construction and filtering controls by youknowdot · Pull Request #9588 · RustPython/RustPython

X Title: Share exception group construction and filtering controls by youknowdot · Pull Request #9588 · RustPython/RustPython

Description: Summary Group CPython 3.15 ExceptionGroup construction, representation and filtering controls in 370 changed lines in one production Rust file. Derive nonempty subgroups whenever the group itself does not match, including when every child matches. Preserve identity for a direct whole-group match. Share guarded internal recursion between subgroup and split instead of dispatching nested Python overrides. Keep derive dynamic. Match callable nonclasses before exception types and exact tuples, including empty tuples and callable tuple subclasses. Reuse FuncArgs for raw positional binding while retaining original argument owners. Preserve constructor/initializer keyword boundaries, sequence callback errors, exact tuple identity, exact list snapshots and unhinted subclass iteration. Reject dictionary sequence impostors and validate actual BaseException payloads before dynamic Exception classification. Render children before snapshotting the short class name and rendering the message. Preserve WTF-8 and custom cached sequence representations; release temporary old-args ownership before callbacks. Retain both derive-input lists through both derives and release matching input before rest input. Preserve result/input cleanup order when a second derive or its metadata copy fails. Preserve the shared derivation metadata helper: copy traceback, copy or clear cause/context, and independently copy sequence notes, releasing the source notes reference before assignment. Its existing Vec entry point remains available to other Rust callers. Fixes #9576. Resolved dependency #9600 merged into main on November 4, 2026. This branch normally merges main c91556b, which includes its lock-safe metadata setters (merge 6d30f20). Independent review confirmed that ancestry and the combined source. The former dependency hold is resolved; no history was rewritten. This change does not depend on unmerged #9719 helpers. Validation Reference source: CPython d220409a13b77de7a6c30abe16ea90db01528edc. Independent source review passed for constructor ordering, ownership, lock safety, recursion, callback order and preservation of the original metadata behavior. The pinned CPython oracle passed 26 checkpoints; five ownership traces were reproduced, one explicitly recording a pre-existing excluded payload-teardown difference. Additional repr ownership/UTF-8 diagnostics and seven independent checkpoints passed, including second-result metadata-failure cleanup. These are reference/source checks, not RustPython runtime execution. Final threaded cargo check passed in 1m05s; all-targets Clippy passed in 2m13s. All 12 baseline diagnostics match unchanged, with no warning suppressions. Ordinary commit hooks, rustfmt and git diff --check passed. The final ownership-explicit source revision was independently re-reviewed. No tests, Lib files, assertions, expected failures or workflows were changed. Native RustPython was not run because the required execution guard has not been verified. Full workspace/C-API suites, runtime differential tests and separate platform/feature graphs remain unrun. Hosted CI must validate this exact head, including test_exception_group. Limits Existing bad-message diagnostics (prefix, None spelling and pathological raw-byte UTF-8 truncation), subclass cannot-nest long-name truncation, cached-repr/original-source payload teardown order, generic tuple-conversion failure cleanup and except-star projection are not claimed fixed. Existing canonical tests cover related split and metadata behavior but do not isolate every scenario in #9576. AI-assisted contribution by OpenAI Codex; assistance is disclosed in commit trailers. Summary by CodeRabbit Bug Fixes Exception group filtering returns None for empty results and derives groups from matching exceptions. Derived groups preserve traceback, context, cause, and supported notes. Exception group creation validates exception sequences and their contents more consistently. Exception matching accepts callable conditions and exact tuples of exception types, including empty tuples. Error messages for invalid arguments are clearer, and displayed class names are safely truncated.

Open Graph Description: Summary Group CPython 3.15 ExceptionGroup construction, representation and filtering controls in 370 changed lines in one production Rust file. Derive nonempty subgroups whenever the group itself ...

X Description: Summary Group CPython 3.15 ExceptionGroup construction, representation and filtering controls in 370 changed lines in one production Rust file. Derive nonempty subgroups whenever the group itself ...

Opengraph URL: https://github.com/RustPython/RustPython/pull/9588

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:771e1b4b-c8f3-bee8-1fab-3be715427198
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA4DA:1C94F:2C7DA57:39067C0:6B01FE76
html-safe-nonce7a55cf81193be256e4ffbadd122f0f5b3e0c65b2e1d417dd4e845ad417382cc1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNERBOjFDOTRGOjJDN0RBNTc6MzkwNjdDMDo2QjAxRkU3NiIsInZpc2l0b3JfaWQiOiIxNzM5MTc4OTIwMTkzOTQ5MzAzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac619457e91f8c21cef6b7024e72c457937d939f3f7262a2a0e50f80a3885898b8
hovercard-subject-tagpull_request:5136836137
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/9588/files
twitter:imagehttps://avatars.githubusercontent.com/u/336763669?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/336763669?s=400&v=4
og:image:altSummary Group CPython 3.15 ExceptionGroup construction, representation and filtering controls in 370 changed lines in one production Rust file. Derive nonempty subgroups whenever the group itself ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git
octolytics-dimension-user_id39710557
octolytics-dimension-user_loginRustPython
octolytics-dimension-repository_id135201145
octolytics-dimension-repository_nwoRustPython/RustPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id135201145
octolytics-dimension-repository_network_root_nwoRustPython/RustPython
turbo-body-classeslogged-out env-production page-responsive
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/9588/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9588%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9588%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=RustPython%2FRustPython
Reloadhttps://github.com/RustPython/RustPython/pull/9588/files
Reloadhttps://github.com/RustPython/RustPython/pull/9588/files
Reloadhttps://github.com/RustPython/RustPython/pull/9588/files
RustPythonhttps://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Codehttps://github.com/RustPython/RustPython
Issues195 (195)https://github.com/RustPython/RustPython/issues
Pull requests133 (133)https://github.com/RustPython/RustPython/pulls
Discussionshttps://github.com/RustPython/RustPython/discussions
Actionshttps://github.com/RustPython/RustPython/actions
Projectshttps://github.com/RustPython/RustPython/projects
Wikihttps://github.com/RustPython/RustPython/wiki
Security and qualityhttps://github.com/RustPython/RustPython/security
Insightshttps://github.com/RustPython/RustPython/insights
Sign up for GitHub https://github.com/signup?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
youknowonehttps://github.com/youknowone
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
youknowdot:fix/exceptiongroup-subgroup-derive-20261103https://github.com/youknowdot/RustPython/tree/fix/exceptiongroup-subgroup-derive-20261103
Conversation 9 https://github.com/RustPython/RustPython/pull/9588
Commits 5 https://github.com/RustPython/RustPython/pull/9588/commits
Checks 20 https://github.com/RustPython/RustPython/pull/9588/checks
Files changed https://github.com/RustPython/RustPython/pull/9588/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9588/files
Share exception group construction and filtering controls https://github.com/RustPython/RustPython/pull/9588/files#top
Show all changes 5 commits https://github.com/RustPython/RustPython/pull/9588/files
42f8e39 Derive matching exception subgroups youknowdot Nov 3, 2026 https://github.com/RustPython/RustPython/pull/9588/commits/42f8e39795c5d67203ca3ece2d0d31843eae9d05
5f04095 Release subgroup notes before assigning copied notes youknowdot Nov 3, 2026 https://github.com/RustPython/RustPython/pull/9588/commits/5f04095f509827e5f7af9197838f2c94e70c8b0b
3c4358a Merge main after exception setter dependency landed youknowdot Nov 4, 2026 https://github.com/RustPython/RustPython/pull/9588/commits/3c4358aceec6c9deebb7ea3b8e1b1dee01550ec2
0749395 Share exception group construction and filtering controls youknowdot Nov 4, 2026 https://github.com/RustPython/RustPython/pull/9588/commits/0749395b9b39aade1098a6453252253a6805683d
32d2f2e Make exception group input retention explicit youknowdot Nov 4, 2026 https://github.com/RustPython/RustPython/pull/9588/commits/32d2f2ee10fa410c1f35f4c23f385246c5e686d6
Clear filters https://github.com/RustPython/RustPython/pull/9588/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9588/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9588/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9588/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9588/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.