René's URL Explorer Experiment


Title: gh-103740: Improve support of __slots__ for variable-length classes by serhiy-storchaka · Pull Request #141636 · python/cpython · GitHub

Open Graph Title: gh-103740: Improve support of __slots__ for variable-length classes by serhiy-storchaka · Pull Request #141636 · python/cpython

X Title: gh-103740: Improve support of __slots__ for variable-length classes by serhiy-storchaka · Pull Request #141636 · python/cpython

Description: Allow defining the dict and weakref slots for any class. Allow defining any slots for a class derived from the type class or other "variable-length" built-in type with the Py_TPFLAGS_ITEMS_AT_END f...

Open Graph Description: Allow defining the dict and weakref slots for any class. Allow defining any slots for a class derived from the type class or other "variable-length" built-in type with the Py_TPFLAGS_ITEM...

X Description: Allow defining the dict and weakref slots for any class. Allow defining any slots for a class derived from the type class or other "variable-length" built-in type with the Py_TPFL...

Opengraph URL: https://github.com/python/cpython/pull/141636

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:8a3c6f85-68ad-e06d-f02e-4e8131453013
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE338:139A69:1383D98:1B1AA17:696A93BA
html-safe-noncea08f33ad70712c65426ca708d2c81013c0b5ddeea5ad736462893988f2e99c02
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzM4OjEzOUE2OToxMzgzRDk4OjFCMUFBMTc6Njk2QTkzQkEiLCJ2aXNpdG9yX2lkIjoiNDgzNzA3NTgxNTAxMTg4MTkxNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace20d1593f514b3b53b956c89f2dd3843a73a24b979ccfa17136344185fede2d3
hovercard-subject-tagpull_request:3015514963
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/141636/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/0dfa7e1d82efe410c5e8352284351ffcb549e153136ceac1378270eb9b2cc79b/python/cpython/pull/141636
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0dfa7e1d82efe410c5e8352284351ffcb549e153136ceac1378270eb9b2cc79b/python/cpython/pull/141636
og:image:altAllow defining the dict and weakref slots for any class. Allow defining any slots for a class derived from the type class or other "variable-length" built-in type with the Py_TPFLAGS_ITEM...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameserhiy-storchaka
hostnamegithub.com
expected-hostnamegithub.com
None4dd496afc954da9c207b2d9fbe86e3074619f565754aa1d9274aec30d9e5b8d7
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release31496a13b80a2f6ad77d6c617ee2255a3545b539
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/141636#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F141636
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F141636
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/141636
Reloadhttps://github.com/python/cpython/pull/141636
Reloadhttps://github.com/python/cpython/pull/141636
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/141636
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/141636
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/141636#issue-comment-box
serhiy-storchakahttps://github.com/serhiy-storchaka
python:mainhttps://github.com/python/cpython/tree/main
serhiy-storchaka:special-slots-with-items2https://github.com/serhiy-storchaka/cpython/tree/special-slots-with-items2
gh-103740: Improve support of __slots__ for variable-length classes https://github.com/python/cpython/pull/141636#top
serhiy-storchakahttps://github.com/serhiy-storchaka
python:mainhttps://github.com/python/cpython/tree/main
serhiy-storchaka:special-slots-with-items2https://github.com/serhiy-storchaka/cpython/tree/special-slots-with-items2
Conversation 18 https://github.com/python/cpython/pull/141636
Commits 4 https://github.com/python/cpython/pull/141636/commits
Checks 42 https://github.com/python/cpython/pull/141636/checks
Files changed https://github.com/python/cpython/pull/141636/files
Please reload this pagehttps://github.com/python/cpython/pull/141636
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Nov 16, 2025https://github.com/python/cpython/pull/141636#issue-3631026593
Please reload this pagehttps://github.com/python/cpython/pull/141636
Allow __slots__ on classes with Py_TPFLAGS_ITEMS_AT_END #103740https://github.com/python/cpython/issues/103740
https://cpython-previews--141636.org.readthedocs.build/https://cpython-previews--141636.org.readthedocs.build/
Please reload this pagehttps://github.com/python/cpython/pull/141636
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
AA-Turnerhttps://github.com/AA-Turner
markshannonhttps://github.com/markshannon
willingchttps://github.com/willingc
code ownershttps://github.com/python/cpython/blob/5348c200f5b26d6dd21d900b2b4cb684150d4b01/.github/CODEOWNERS#L113
November 16, 2025 19:24https://github.com/python/cpython/pull/141636#event-20973979363
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Nov 16, 2025https://github.com/python/cpython/pull/141636#event-20973979624
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Nov 16, 2025 https://github.com/python/cpython/pull/141636#ref-issue-1680595100
Allow __slots__ on classes with Py_TPFLAGS_ITEMS_AT_END #103740 https://github.com/python/cpython/issues/103740
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
encukouhttps://github.com/encukou
November 16, 2025 19:25https://github.com/python/cpython/pull/141636#event-20973980515
https://github.com/serhiy-storchaka
pythongh-103740https://github.com/python/cpython/issues/103740
: Improve support of __slots__ for variable-length cla…https://github.com/python/cpython/pull/141636/commits/c17b254fc188518cd2868a7b819c4ba8f5d95acf
c17b254https://github.com/python/cpython/pull/141636/commits/c17b254fc188518cd2868a7b819c4ba8f5d95acf
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
force-pushedhttps://github.com/python/cpython/compare/8c3d950ebfb3865819698a84e883d3e34bcfac9f..c17b254fc188518cd2868a7b819c4ba8f5d95acf
8c3d950https://github.com/python/cpython/commit/8c3d950ebfb3865819698a84e883d3e34bcfac9f
c17b254https://github.com/python/cpython/commit/c17b254fc188518cd2868a7b819c4ba8f5d95acf
Compare https://github.com/python/cpython/compare/8c3d950ebfb3865819698a84e883d3e34bcfac9f..c17b254fc188518cd2868a7b819c4ba8f5d95acf
November 16, 2025 20:35https://github.com/python/cpython/pull/141636#event-20974400543
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Nov 16, 2025 https://github.com/python/cpython/pull/141636#pullrequestreview-3470567068
View reviewed changes https://github.com/python/cpython/pull/141636/files/c17b254fc188518cd2868a7b819c4ba8f5d95acf
Doc/whatsnew/3.15.rsthttps://github.com/python/cpython/pull/141636/files/c17b254fc188518cd2868a7b819c4ba8f5d95acf#diff-bd7a9c5b54eeb2b40e6db5e48e8d79d309d8738e776a40918773c6840189edf9
Please reload this pagehttps://github.com/python/cpython/pull/141636
https://github.com/serhiy-storchaka
https://github.com/picnixz
Update Doc/whatsnew/3.15.rsthttps://github.com/python/cpython/pull/141636/commits/7223cd5c7377411544255444d88bdd1a627ef8e3
7223cd5https://github.com/python/cpython/pull/141636/commits/7223cd5c7377411544255444d88bdd1a627ef8e3
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Nov 17, 2025https://github.com/python/cpython/pull/141636#issuecomment-3540711652
Please reload this pagehttps://github.com/python/cpython/pull/141636
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Nov 17, 2025 https://github.com/python/cpython/pull/141636#pullrequestreview-3471744605
View reviewed changes https://github.com/python/cpython/pull/141636/files/7223cd5c7377411544255444d88bdd1a627ef8e3
Misc/NEWS.d/next/Core_and_Builtins/2025-11-16-21-14-48.gh-issue-103740.rXIj5h.rsthttps://github.com/python/cpython/pull/141636/files/7223cd5c7377411544255444d88bdd1a627ef8e3#diff-1d455b96186b5af7e2bb63d9e9fc1f91829b4601e635f2e4d3a2447a9660de33
Please reload this pagehttps://github.com/python/cpython/pull/141636
https://github.com/serhiy-storchaka
https://github.com/picnixz
Update Misc/NEWS.d/next/Core_and_Builtins/2025-11-16-21-14-48.gh-issu…https://github.com/python/cpython/pull/141636/commits/723dcaa3a4dbd3453e4f2616dfe58f791756a686
723dcaahttps://github.com/python/cpython/pull/141636/commits/723dcaa3a4dbd3453e4f2616dfe58f791756a686
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Nov 17, 2025https://github.com/python/cpython/pull/141636#issuecomment-3540760732
Please reload this pagehttps://github.com/python/cpython/pull/141636
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Nov 17, 2025https://github.com/python/cpython/pull/141636#issuecomment-3540986792
Please reload this pagehttps://github.com/python/cpython/pull/141636
https://github.com/encukou
encukouhttps://github.com/encukou
Nov 17, 2025 https://github.com/python/cpython/pull/141636#pullrequestreview-3473162208
View reviewed changes https://github.com/python/cpython/pull/141636/files/723dcaa3a4dbd3453e4f2616dfe58f791756a686
encukouhttps://github.com/encukou
https://github.com/python/cpython/pull/141636#pullrequestreview-3473162208
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/141636
Doc/reference/datamodel.rsthttps://github.com/python/cpython/pull/141636/files/723dcaa3a4dbd3453e4f2616dfe58f791756a686#diff-9125871b063a1ef80aa4bd3e46d7060921032c8437160c7cb8c1497756b02d61
Please reload this pagehttps://github.com/python/cpython/pull/141636
Doc/reference/datamodel.rsthttps://github.com/python/cpython/pull/141636/files/723dcaa3a4dbd3453e4f2616dfe58f791756a686#diff-9125871b063a1ef80aa4bd3e46d7060921032c8437160c7cb8c1497756b02d61
Please reload this pagehttps://github.com/python/cpython/pull/141636
https://github.com/serhiy-storchaka
https://github.com/encukou
Apply suggestions from code reviewhttps://github.com/python/cpython/pull/141636/commits/584637981cc42a962bf54ae1b9f6d9a9ba4a31dc
5846379https://github.com/python/cpython/pull/141636/commits/584637981cc42a962bf54ae1b9f6d9a9ba4a31dc
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Nov 17, 2025 https://github.com/python/cpython/pull/141636#pullrequestreview-3473432621
View reviewed changes https://github.com/python/cpython/pull/141636/files/584637981cc42a962bf54ae1b9f6d9a9ba4a31dc
Doc/reference/datamodel.rsthttps://github.com/python/cpython/pull/141636/files/584637981cc42a962bf54ae1b9f6d9a9ba4a31dc#diff-9125871b063a1ef80aa4bd3e46d7060921032c8437160c7cb8c1497756b02d61
serhiy-storchakahttps://github.com/serhiy-storchaka
Nov 17, 2025https://github.com/python/cpython/pull/141636#discussion_r2534637875
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/141636
https://github.com/encukou
encukouhttps://github.com/encukou
Nov 18, 2025https://github.com/python/cpython/pull/141636#issuecomment-3548094715
Please reload this pagehttps://github.com/python/cpython/pull/141636
Please reload this pagehttps://github.com/python/cpython/pull/141636
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Nov 18, 2025https://github.com/python/cpython/pull/141636#issuecomment-3548236072
Please reload this pagehttps://github.com/python/cpython/pull/141636
https://github.com/encukou
encukouhttps://github.com/encukou
Nov 19, 2025https://github.com/python/cpython/pull/141636#issuecomment-3552968283
Please reload this pagehttps://github.com/python/cpython/pull/141636
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Nov 19, 2025https://github.com/python/cpython/pull/141636#issuecomment-3553265318
Please reload this pagehttps://github.com/python/cpython/pull/141636
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Nov 19, 2025https://github.com/python/cpython/pull/141636#issuecomment-3553354217
#141755https://github.com/python/cpython/pull/141755
Please reload this pagehttps://github.com/python/cpython/pull/141636
https://github.com/encukou
encukouhttps://github.com/encukou
Nov 19, 2025https://github.com/python/cpython/pull/141636#issuecomment-3553699260
Please reload this pagehttps://github.com/python/cpython/pull/141636
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Nov 19, 2025https://github.com/python/cpython/pull/141636#issuecomment-3554184363
#141764https://github.com/python/cpython/pull/141764
Please reload this pagehttps://github.com/python/cpython/pull/141636
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Nov 19, 2025https://github.com/python/cpython/pull/141636#event-21050833342
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Nov 19, 2025https://github.com/python/cpython/pull/141636#issuecomment-3554199842
#103740https://github.com/python/cpython/issues/103740
Please reload this pagehttps://github.com/python/cpython/pull/141636
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F141636
https://github.com/encukou
encukou https://github.com/encukou
https://github.com/python/cpython/pull/141636/files/723dcaa3a4dbd3453e4f2616dfe58f791756a686
https://github.com/picnixz
picnixz https://github.com/picnixz
https://github.com/python/cpython/pull/141636/files/7223cd5c7377411544255444d88bdd1a627ef8e3
https://github.com/markshannon
markshannon https://github.com/markshannon
https://github.com/AA-Turner
AA-Turner https://github.com/AA-Turner
https://github.com/willingc
willingc https://github.com/willingc
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Please reload this pagehttps://github.com/python/cpython/pull/141636
https://github.com/serhiy-storchaka
https://github.com/picnixz
https://github.com/encukou
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.