René's URL Explorer Experiment


Title: Align type layouts and generic descriptors with Python 3.15 by youknowdot · Pull Request #9175 · RustPython/RustPython · GitHub

Open Graph Title: Align type layouts and generic descriptors with Python 3.15 by youknowdot · Pull Request #9175 · RustPython/RustPython

X Title: Align type layouts and generic descriptors with Python 3.15 by youknowdot · Pull Request #9175 · RustPython/RustPython

Description: Align type layouts and generic descriptors with Python 3.15 Split from #8954, based directly on main. This is a coherent native type-layout change with its complete canonical descriptor-test closure. Changes Permit named slots on tuple subclasses and special dict/weakref slots on supported variable-sized bases. Distinguish __bases__ reparenting from strict __class__ assignment checks, preserving allocated storage and the existing member-layout safeguards. Share object-owned generic __dict__ and __weakref__ descriptors within each interpreter, using existing descriptor ownership/traversal and storage checks. Reject a selected metaclass with no constructor slot and align special type-attribute validation. Import full test_descr.py from CPython 3.15.0 d220409a13 through scripts/update_lib, preserving the two existing RustPython expectedSuccess wrappers. No new guards or test-logic edits. Preserves merged annotation/cache lifetime fixes from #9162 and layout safeguards from #9041. Does not depend on the separate weakref-lifecycle, lazy-import or startup-path PRs. Validation Normal commit hooks pass. Fresh locked/offline release build passes. Pinned CPython oracle: 168 tests total, 165 pass, one CPU-resource skip, two canonical expected failures. RustPython full canonical descriptor suite: 168 total, 155 pass, 13 canonical skips, no failures or expected failures. New tuple/special-slot, shared-descriptor and base-assignment cases execute successfully. Workspace native: 1,369 passed. C-API native: 123 passed, four existing ignored tests. Strict Clippy passes for both workspace and separate C-API configurations. Compiler-only nonthread check passes. Workspace doctests: 24 passed, 18 ignored. C-API doctests: zero tests, successful completion. Related existing suites: tuple 34 passed/4 skipped; class 33 passed/4 skipped; super 40 passed; types 132 passed/2 skipped/2 expected failures. All existing guards preserved. The missing _testcapi fixtures leave the null-constructor metaclass and before-items C-extension storage paths without candidate runtime coverage. They are not reported as passing. Local validation was on Linux with the default filesystem-library backend; hosted platform results are pending. Default resources are used; the million-wrapper CPU stress test remains canonically resource-gated. Each runtime uses bounded owned-process cleanup and a private library/temp environment. Source and artifact hashes reconcile; generated bytecode is hash-preserved separately. One oracle-to-build audit command initially used an incorrect relative path, so its full post-oracle audit completed immediately after build launch; it found no changes. The build's own sealed-source and zero-cache preflight succeeded before launch. AI assistance OpenAI Codex assisted with extraction, source review, canonical migration, validation and this description. Model version was unavailable. Independent source, effects and artifact reviews were performed; remaining coverage limits are disclosed above. Summary by CodeRabbit Bug Fixes Improved validation when changing a class’s base classes or assigning __class__, including checks for compatible memory layout and dictionary or weak-reference support. Tuple subclasses can now define named slots, while unsupported slot layouts continue to raise errors. Accessing __weakref__ on instances without weak-reference support now raises AttributeError. Invalid metaclass selection now raises TypeError when the winning metaclass has no __new__ method.

Open Graph Description: Align type layouts and generic descriptors with Python 3.15 Split from #8954, based directly on main. This is a coherent native type-layout change with its complete canonical descriptor-test closur...

X Description: Align type layouts and generic descriptors with Python 3.15 Split from #8954, based directly on main. This is a coherent native type-layout change with its complete canonical descriptor-test closur...

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

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:d1959b28-81e2-885d-a02e-92ba1bede741
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8C72:11EACE:3496BE4:4633ECD:6B01FE9C
html-safe-noncef998211ba204e230b5d05a57092e473465b5b24ee5fc82a7025bb054efe4a865
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzcyOjExRUFDRTozNDk2QkU0OjQ2MzNFQ0Q6NkIwMUZFOUMiLCJ2aXNpdG9yX2lkIjoiMjQxOTg5Nzk4MDY3ODE3NjQxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacdd3d949ba3dfe22ec3ab63e2daa4a0a14dd2ad26e4be7bdd36839ef1748dce0a
hovercard-subject-tagpull_request:4900427242
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/9175/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:altAlign type layouts and generic descriptors with Python 3.15 Split from #8954, based directly on main. This is a coherent native type-layout change with its complete canonical descriptor-test closur...
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 full-width
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/9175/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9175%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%2F9175%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/9175/files
Reloadhttps://github.com/RustPython/RustPython/pull/9175/files
Reloadhttps://github.com/RustPython/RustPython/pull/9175/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/type-layout-descriptors-315https://github.com/youknowdot/RustPython/tree/fix/type-layout-descriptors-315
Conversation 12 https://github.com/RustPython/RustPython/pull/9175
Commits 1 https://github.com/RustPython/RustPython/pull/9175/commits
Checks 30 https://github.com/RustPython/RustPython/pull/9175/checks
Files changed https://github.com/RustPython/RustPython/pull/9175/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9175/files
Align type layouts and generic descriptors with Python 3.15 https://github.com/RustPython/RustPython/pull/9175/files#top
Show all changes 1 commit https://github.com/RustPython/RustPython/pull/9175/files
c0eae2c Align type layouts and generic descriptors with Python 3.15 youknowdot Oct 17, 2026 https://github.com/RustPython/RustPython/pull/9175/commits/c0eae2caff6b4dc36602aad4a4f8240cad7577f7
Clear filters https://github.com/RustPython/RustPython/pull/9175/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9175/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9175/files
test_descr.py https://github.com/RustPython/RustPython/pull/9175/files#diff-6b813570d02ae3544e7e0233ae21d647f8e2dc47486495557e8d16c80460e85b
object.rs https://github.com/RustPython/RustPython/pull/9175/files#diff-ec7721ead0f46e1973ab4e3083a62519b403b8cf2503e4a94d82e00cee8d521b
type.rs https://github.com/RustPython/RustPython/pull/9175/files#diff-fb88962f9343ca7b8d31bfe34f5063136575e05eadae6fccb3b64658e14b0d6c
interpreter.rs https://github.com/RustPython/RustPython/pull/9175/files#diff-2361f366cc46771907dbd3b09eb8b9c839e7f059710345f2265c1753862a1b20
mod.rs https://github.com/RustPython/RustPython/pull/9175/files#diff-fe30ecf7c6b462e46e0874a55a05ea0edba83cefad5ac7a86e7137fa8f86ba74
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9175/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9175/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.