René's URL Explorer Experiment


Title: GH-115776: Allow any fixed sized object to have inline values by markshannon · Pull Request #123192 · python/cpython · GitHub

Open Graph Title: GH-115776: Allow any fixed sized object to have inline values by markshannon · Pull Request #123192 · python/cpython

X Title: GH-115776: Allow any fixed sized object to have inline values by markshannon · Pull Request #123192 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: Currently only objects with Py_TYPE(obj)->tp_basicsize == sizeof(PyObject) are allowed to have inline values. This PR changes that to allow any object where all instances of the class have the s...

X Description: Currently only objects with Py_TYPE(obj)->tp_basicsize == sizeof(PyObject) are allowed to have inline values. This PR changes that to allow any object where all instances of the class have t...

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

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:ffa21883-2934-4350-ca0f-9e15f69a358f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idEC08:305A:1DCAA6:281BE1:6A4D873D
html-safe-nonce50dcdaba3c36383edbe178cbcb65ea44c8c3f78cc2d7b2e5d30d0a81119fd27a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzA4OjMwNUE6MURDQUE2OjI4MUJFMTo2QTREODczRCIsInZpc2l0b3JfaWQiOiI5MzAzNTQzNTk3ODYzNzQ5NzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac94611730cfa088cf52b4d47faf144f6f83bf204fac4ee1e3d61b60c40e88fb6a
hovercard-subject-tagpull_request:2029149230
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/123192/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/fed88f68da0a3e3580387c09cfc0218f202f17f31d5a20c75a188a45e55c2ae1/python/cpython/pull/123192
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fed88f68da0a3e3580387c09cfc0218f202f17f31d5a20c75a188a45e55c2ae1/python/cpython/pull/123192
og:image:altCurrently only objects with Py_TYPE(obj)->tp_basicsize == sizeof(PyObject) are allowed to have inline values. This PR changes that to allow any object where all instances of the class have the s...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemarkshannon
hostnamegithub.com
expected-hostnamegithub.com
None9f8758a3953dfe943439713a6fa4f90d542a3431f10e861ca03dd7f39009f320
turbo-cache-controlno-cache
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
releasebffd5484f01713a661b03469b77678f72b6574ed
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/123192#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F123192
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
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%2F123192
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/123192
Reloadhttps://github.com/python/cpython/pull/123192
Reloadhttps://github.com/python/cpython/pull/123192
Please reload this pagehttps://github.com/python/cpython/pull/123192
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/123192
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 34.8k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.6k 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.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
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 and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
markshannonhttps://github.com/markshannon
python:mainhttps://github.com/python/cpython/tree/main
faster-cpython:variable-offset-inline-valueshttps://github.com/faster-cpython/cpython/tree/variable-offset-inline-values
Conversationhttps://github.com/python/cpython/pull/123192
Commits9 (9)https://github.com/python/cpython/pull/123192/commits
Checkshttps://github.com/python/cpython/pull/123192/checks
Files changedhttps://github.com/python/cpython/pull/123192/files
GH-115776: Allow any fixed sized object to have inline valueshttps://github.com/python/cpython/pull/123192#top
markshannonhttps://github.com/markshannon
python:mainhttps://github.com/python/cpython/tree/main
faster-cpython:variable-offset-inline-valueshttps://github.com/faster-cpython/cpython/tree/variable-offset-inline-values
https://github.com/markshannon
markshannonhttps://github.com/markshannon
Aug 21, 2024https://github.com/python/cpython/pull/123192#issue-2477328358
Please reload this pagehttps://github.com/python/cpython/pull/123192
Performancehttps://github.com/faster-cpython/benchmarking-public/tree/main/results/bm-20240820-3.14.0a0-a3e6464
statshttps://github.com/faster-cpython/benchmarking-public/blob/main/results/bm-20240820-3.14.0a0-a3e6464/bm-20240820-azure-x86_64-faster%252dcpython-variable_offset_inli-3.14.0a0-a3e6464-pystats-vs-base.md
the shadowing issuehttps://github.com/python/cpython/issues/123040
Inline values array into the object #115776https://github.com/python/cpython/issues/115776
Please reload this pagehttps://github.com/python/cpython/pull/123192
markshannonhttps://github.com/markshannon
August 20, 2024 17:55https://github.com/python/cpython/pull/123192#commits-pushed-2c1119d
https://github.com/markshannon
Allow any fixed object to have inline valueshttps://github.com/python/cpython/pull/123192/commits/2c1119db082903ccd215480dfdf7410d47d21ef4
2c1119dhttps://github.com/python/cpython/pull/123192/commits/2c1119db082903ccd215480dfdf7410d47d21ef4
https://github.com/markshannon
Use tp_basicsizehttps://github.com/python/cpython/pull/123192/commits/a3e64643f8a6cac1790e01459bb96e9b11f4a4a1
a3e6464https://github.com/python/cpython/pull/123192/commits/a3e64643f8a6cac1790e01459bb96e9b11f4a4a1
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Aug 21, 2024 https://github.com/python/cpython/pull/123192#ref-issue-2147257868
Inline values array into the object #115776 https://github.com/python/cpython/issues/115776
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
Aug 21, 2024https://github.com/python/cpython/pull/123192#event-13955995925
markshannonhttps://github.com/markshannon
August 21, 2024 08:51https://github.com/python/cpython/pull/123192#commits-pushed-89655c9
https://github.com/markshannon
Use offset, not index in LOAD/STORE_ATTR_INSTANCE_VALUE for speed.https://github.com/python/cpython/pull/123192/commits/89655c994be185d2f1b28c581bea49abdcd9930f
89655c9https://github.com/python/cpython/pull/123192/commits/89655c994be185d2f1b28c581bea49abdcd9930f
https://github.com/markshannon
Add newshttps://github.com/python/cpython/pull/123192/commits/f26cf5327043d51577334f65df4f96f34077654c
f26cf53https://github.com/python/cpython/pull/123192/commits/f26cf5327043d51577334f65df4f96f34077654c
https://github.com/markshannon
Update gdb supporthttps://github.com/python/cpython/pull/123192/commits/7cc899634f18d9ecf8a0c058c9413946bfd31c83
7cc8996https://github.com/python/cpython/pull/123192/commits/7cc899634f18d9ecf8a0c058c9413946bfd31c83
https://github.com/markshannon
Fix up tier 2https://github.com/python/cpython/pull/123192/commits/2315e0a56195977b45ab9394a0cbec155d8a4ec8
2315e0ahttps://github.com/python/cpython/pull/123192/commits/2315e0a56195977b45ab9394a0cbec155d8a4ec8
https://github.com/markshannon
markshannonhttps://github.com/markshannon
Fidget-Spinnerhttps://github.com/Fidget-Spinner
code ownerhttps://github.com/python/cpython/blob/90c892efeaae28bd849a01b42842f19dcd67b9f4/.github/CODEOWNERS#L44
August 21, 2024 09:36https://github.com/python/cpython/pull/123192#event-13957525035
https://github.com/markshannon
Update free-threading version of the GC modulehttps://github.com/python/cpython/pull/123192/commits/cb6b30a9ea19fad507b3273f90436f23e6d80c92
cb6b30ahttps://github.com/python/cpython/pull/123192/commits/cb6b30a9ea19fad507b3273f90436f23e6d80c92
https://github.com/iritkatriel
iritkatrielhttps://github.com/iritkatriel
Aug 21, 2024 https://github.com/python/cpython/pull/123192#pullrequestreview-2250665650
View reviewed changes https://github.com/python/cpython/pull/123192/files/cb6b30a9ea19fad507b3273f90436f23e6d80c92
iritkatrielhttps://github.com/iritkatriel
https://github.com/python/cpython/pull/123192#pullrequestreview-2250665650
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/123192
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Aug 21, 2024https://github.com/python/cpython/pull/123192#event-13959694564
https://github.com/markshannon
markshannonhttps://github.com/markshannon
Aug 21, 2024https://github.com/python/cpython/pull/123192#issuecomment-2301969743
Please reload this pagehttps://github.com/python/cpython/pull/123192
https://github.com/markshannon
Update docs on inline valueshttps://github.com/python/cpython/pull/123192/commits/ebad9340f7e47d6d33fcfc4d575b13dffc632404
ebad934https://github.com/python/cpython/pull/123192/commits/ebad9340f7e47d6d33fcfc4d575b13dffc632404
https://github.com/markshannon
markshannonhttps://github.com/markshannon
Aug 21, 2024 https://github.com/python/cpython/pull/123192#pullrequestreview-2250732682
View reviewed changes https://github.com/python/cpython/pull/123192/files/ebad9340f7e47d6d33fcfc4d575b13dffc632404
Objects/object_layout.mdhttps://github.com/python/cpython/pull/123192/files/ebad9340f7e47d6d33fcfc4d575b13dffc632404#diff-f550d858238c4158e32fcc8592598a601277305a51a211d239cb23cb335db637
Please reload this pagehttps://github.com/python/cpython/pull/123192
https://github.com/markshannon
Update Objects/object_layout.mdhttps://github.com/python/cpython/pull/123192/commits/9523760069dc6e44b7fc127b7069c314eb03f462
9523760https://github.com/python/cpython/pull/123192/commits/9523760069dc6e44b7fc127b7069c314eb03f462
https://github.com/markshannon
markshannonhttps://github.com/markshannon
a4fd7aahttps://github.com/python/cpython/commit/a4fd7aa4a6420cef1c22ec64eab54d8aea41cc57
Aug 21, 2024https://github.com/python/cpython/pull/123192#event-13961776492
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Aug 21, 2024https://github.com/python/cpython/pull/123192#event-13961777716
blhsinghttps://github.com/blhsing
Aug 22, 2024 https://github.com/python/cpython/pull/123192#ref-commit-b0ec40b
https://github.com/markshannon
https://github.com/blhsing
pythonGH-115776https://github.com/python/cpython/issues/115776
: Allow any fixed sized object to have inline values (https://github.com/blhsing/cpython/commit/b0ec40bb69e698f39ec4c7822d78f877b6becd5e
p…https://github.com/python/cpython/pull/123192
b0ec40bhttps://github.com/blhsing/cpython/commit/b0ec40bb69e698f39ec4c7822d78f877b6becd5e
…ythonGH-123192https://github.com/python/cpython/pull/123192
https://github.com/cdce8p
cdce8phttps://github.com/cdce8p
Oct 16, 2024 https://github.com/python/cpython/pull/123192#ref-issue-2592863649
[mypyc] Pickle test failure with Python 3.14.0a1 python/mypy#17973 https://github.com/python/mypy/issues/17973
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
Oct 17, 2024https://github.com/python/cpython/pull/123192#issuecomment-2418428254
python/mypy#17973https://github.com/python/mypy/issues/17973
Please reload this pagehttps://github.com/python/cpython/pull/123192
https://github.com/cdce8p
cdce8phttps://github.com/cdce8p
Feb 19, 2025 https://github.com/python/cpython/pull/123192#ref-issue-2864443441
Pickle test failure with Python 3.14.0a5+ mypyc/mypyc#1091 https://github.com/mypyc/mypyc/issues/1091
https://github.com/henryiii
henryiiihttps://github.com/henryiii
May 9, 2025 https://github.com/python/cpython/pull/123192#ref-pullrequest-3049817391
fix: support Python 3.14 pybind/pybind11#5646 https://github.com/pybind/pybind11/pull/5646
https://github.com/shadchin
shadchinhttps://github.com/shadchin
Nov 27, 2025 https://github.com/python/cpython/pull/123192#ref-pullrequest-3671120317
Fix segmentation fault on Python 3.13 msgspec/msgspec#960 https://github.com/msgspec/msgspec/pull/960
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
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%2F123192
https://github.com/iritkatriel
iritkatriel https://github.com/iritkatriel
https://github.com/python/cpython/pull/123192/files/cb6b30a9ea19fad507b3273f90436f23e6d80c92
https://github.com/Fidget-Spinner
Fidget-Spinner https://github.com/Fidget-Spinner
Please reload this pagehttps://github.com/python/cpython/pull/123192
https://github.com/markshannon
https://github.com/hauntsaninja
https://github.com/iritkatriel
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.