René's URL Explorer Experiment


Title: gh-111506: Add _Py_OPAQUE_PYOBJECT to hide PyObject layout & related API by encukou · Pull Request #136505 · python/cpython · GitHub

Open Graph Title: gh-111506: Add _Py_OPAQUE_PYOBJECT to hide PyObject layout & related API by encukou · Pull Request #136505 · python/cpython

X Title: gh-111506: Add _Py_OPAQUE_PYOBJECT to hide PyObject layout & related API by encukou · Pull Request #136505 · python/cpython

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

Open Graph Description: Make it so that defining _Py_OPAQUE_PYOBJECT before including <Python.h> will make the PyObject struct opaque, and hide all limited-API structs & functions that need access to it. Also, a...

X Description: Make it so that defining _Py_OPAQUE_PYOBJECT before including &lt;Python.h&gt; will make the PyObject struct opaque, and hide all limited-API structs &amp; functions that need access to...

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

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/_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:3e4ac61a-e1cd-e010-b629-7fb825bd4ceb
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD262:1FE434:1770DB5:1EED09D:6B0206A0
html-safe-nonce31ea05b45631cd1c9b3f3d0b369e85ef7208d94254b9091072e902de2749949c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjYyOjFGRTQzNDoxNzcwREI1OjFFRUQwOUQ6NkIwMjA2QTAiLCJ2aXNpdG9yX2lkIjoiMzIxOTUzNzY3NjIwMjAxODQ2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd676b5116fe2e74c85c856b27e8f3215aa7b0f51673516f5f03fa49033759c17
hovercard-subject-tagpull_request:2655676877
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/136505/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/419bb57d993e5196e15d68953d8ee2c015d724dbe2c713a7f6ec6bd9ad36347e/python/cpython/pull/136505
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/419bb57d993e5196e15d68953d8ee2c015d724dbe2c713a7f6ec6bd9ad36347e/python/cpython/pull/136505
og:image:altMake it so that defining _Py_OPAQUE_PYOBJECT before including <Python.h> will make the PyObject struct opaque, and hide all limited-API structs & functions that need access to it. Also, a...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameencukou
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/136505#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F136505
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%2Fpython%2Fcpython%2Fpull%2F136505
Sign uphttps://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/136505
Reloadhttps://github.com/python/cpython/pull/136505
Reloadhttps://github.com/python/cpython/pull/136505
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
encukouhttps://github.com/encukou
python:mainhttps://github.com/python/cpython/tree/main
encukou:opaque-pyobject-privhttps://github.com/encukou/cpython/tree/opaque-pyobject-priv
Conversationhttps://github.com/python/cpython/pull/136505
Commits5 (5)https://github.com/python/cpython/pull/136505/commits
Checkshttps://github.com/python/cpython/pull/136505/checks
Files changedhttps://github.com/python/cpython/pull/136505/files
gh-111506: Add _Py_OPAQUE_PYOBJECT to hide PyObject layout & related APIhttps://github.com/python/cpython/pull/136505#top
encukouhttps://github.com/encukou
python:mainhttps://github.com/python/cpython/tree/main
encukou:opaque-pyobject-privhttps://github.com/encukou/cpython/tree/opaque-pyobject-priv
https://github.com/encukou
encukouhttps://github.com/encukou
Jul 10, 2025https://github.com/python/cpython/pull/136505#issue-3219046740
Please reload this pagehttps://github.com/python/cpython/pull/136505
Discourse threadhttps://discuss.python.org/t/86458
I mentionedhttps://discuss.python.org/t/86458/43
--disable-gil builds are not compatible with the limited API #111506https://github.com/python/cpython/issues/111506
Please reload this pagehttps://github.com/python/cpython/pull/136505
encukouhttps://github.com/encukou
July 10, 2025 13:12https://github.com/python/cpython/pull/136505#commits-pushed-2639997
https://github.com/encukou
Allow Py_LIMITED_API for (Py_GIL_DISABLED && _Py_OPAQUE_PYOBJECT)https://github.com/python/cpython/pull/136505/commits/2639997fa2afeee66635de366dad31937830634d
2639997https://github.com/python/cpython/pull/136505/commits/2639997fa2afeee66635de366dad31937830634d
https://github.com/encukou
Hide some API if _Py_OPAQUE_PYOBJECT is definedhttps://github.com/python/cpython/pull/136505/commits/7ff56f41d91457ac1baa1ce72312d8d7ce61acb7
7ff56f4https://github.com/python/cpython/pull/136505/commits/7ff56f41d91457ac1baa1ce72312d8d7ce61acb7
https://github.com/encukou
encukouhttps://github.com/encukou
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
code ownerhttps://github.com/python/cpython/blob/d754f75f42f040267d818ab804ada340f55e5925/.github/CODEOWNERS#L146
July 10, 2025 11:52https://github.com/python/cpython/pull/136505#event-18564351280
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
Jul 10, 2025https://github.com/python/cpython/pull/136505#event-18564352183
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jul 10, 2025 https://github.com/python/cpython/pull/136505#ref-issue-1968831382
--disable-gil builds are not compatible with the limited API #111506 https://github.com/python/cpython/issues/111506
https://github.com/encukou
encukouhttps://github.com/encukou
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Jul 10, 2025https://github.com/python/cpython/pull/136505#event-18564681823
https://github.com/encukou
Add test for _Py_OPAQUE_PYOBJECThttps://github.com/python/cpython/pull/136505/commits/33d9ae7cbeea2702baa8566617d48d855e0242f7
33d9ae7https://github.com/python/cpython/pull/136505/commits/33d9ae7cbeea2702baa8566617d48d855e0242f7
https://github.com/encukou
encukouhttps://github.com/encukou
Jul 11, 2025https://github.com/python/cpython/pull/136505#issuecomment-3061888481
missing parthttps://peps.python.org/pep-0793/
Please reload this pagehttps://github.com/python/cpython/pull/136505
https://github.com/encukou
encukouhttps://github.com/encukou
Jul 11, 2025 https://github.com/python/cpython/pull/136505#ref-issue-1935104439
Make PyObject and other runtime structures optionally fully opaque capi-workgroup/api-revolution#6 https://github.com/capi-workgroup/api-revolution/issues/6
https://github.com/encukou
encukouhttps://github.com/encukou
🔨 test-with-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22
Jul 11, 2025https://github.com/python/cpython/pull/136505#event-18584939635
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Jul 11, 2025https://github.com/python/cpython/pull/136505#issuecomment-3062015062
@encukouhttps://github.com/encukou
33d9ae7https://github.com/python/cpython/commit/33d9ae7cbeea2702baa8566617d48d855e0242f7
https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F136505%2Fmergehttps://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F136505%2Fmerge
Please reload this pagehttps://github.com/python/cpython/pull/136505
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
🔨 test-with-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22
Jul 11, 2025https://github.com/python/cpython/pull/136505#event-18584940449
https://github.com/encukou
encukouhttps://github.com/encukou
Jul 11, 2025https://github.com/python/cpython/pull/136505#issuecomment-3062522818
@vstinnerhttps://github.com/vstinner
Please reload this pagehttps://github.com/python/cpython/pull/136505
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Jul 11, 2025 https://github.com/python/cpython/pull/136505#pullrequestreview-3010679639
View reviewed changes https://github.com/python/cpython/pull/136505/files/33d9ae7cbeea2702baa8566617d48d855e0242f7
vstinnerhttps://github.com/vstinner
https://github.com/python/cpython/pull/136505#pullrequestreview-3010679639
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/136505
Lib/test/test_cext/__init__.pyhttps://github.com/python/cpython/pull/136505/files/33d9ae7cbeea2702baa8566617d48d855e0242f7#diff-0ab884195ba524e4b7afc42bc851ca375bf0d1e1b7f105d3b7f7127524f84009
vstinnerhttps://github.com/vstinner
Jul 11, 2025https://github.com/python/cpython/pull/136505#discussion_r2200970134
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/136505
Lib/test/test_cext/setup.pyhttps://github.com/python/cpython/pull/136505/files/33d9ae7cbeea2702baa8566617d48d855e0242f7#diff-59682024360a2b05305c3501fe3c1fc17d715e2a3acd0f61a6c9aa1ebdd60e52
vstinnerhttps://github.com/vstinner
Jul 11, 2025https://github.com/python/cpython/pull/136505#discussion_r2200971494
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/136505
Lib/test/test_cext/setup.pyhttps://github.com/python/cpython/pull/136505/files/33d9ae7cbeea2702baa8566617d48d855e0242f7#diff-59682024360a2b05305c3501fe3c1fc17d715e2a3acd0f61a6c9aa1ebdd60e52
vstinnerhttps://github.com/vstinner
Jul 11, 2025https://github.com/python/cpython/pull/136505#discussion_r2200974445
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/136505
vstinnerhttps://github.com/vstinner
July 11, 2025 21:53https://github.com/python/cpython/pull/136505#commits-pushed-781e2ab
https://github.com/vstinner
https://github.com/encukou
Apply suggestions from code reviewhttps://github.com/python/cpython/pull/136505/commits/781e2abecd12aa092f48ca34ea5290fb7764d23f
781e2abhttps://github.com/python/cpython/pull/136505/commits/781e2abecd12aa092f48ca34ea5290fb7764d23f
https://github.com/encukou
Merge in the main branch to solve conflicthttps://github.com/python/cpython/pull/136505/commits/08d963d8a328191ea7428ae90273fab7f6166fc1
08d963dhttps://github.com/python/cpython/pull/136505/commits/08d963d8a328191ea7428ae90273fab7f6166fc1
https://github.com/encukou
encukouhttps://github.com/encukou
c7d24b8https://github.com/python/cpython/commit/c7d24b81c376b0cf0b34f861cb18c1b1e4eac27b
Jul 12, 2025https://github.com/python/cpython/pull/136505#event-18598033777
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
Jul 12, 2025https://github.com/python/cpython/pull/136505#event-18598034299
https://github.com/encukou
encukouhttps://github.com/encukou
July 12, 2025 07:55https://github.com/python/cpython/pull/136505#event-18598034622
Pranjal095https://github.com/Pranjal095
Jul 12, 2025 https://github.com/python/cpython/pull/136505#ref-commit-0292e9d
https://github.com/encukou
https://github.com/vstinner
https://github.com/Pranjal095
pythongh-111506https://github.com/python/cpython/issues/111506
: Add _Py_OPAQUE_PYOBJECT to hide PyObject layout & re…https://github.com/Pranjal095/cpython/commit/0292e9d6da4f5407bcb004658c8fc45c073da46d
0292e9dhttps://github.com/Pranjal095/cpython/commit/0292e9d6da4f5407bcb004658c8fc45c073da46d
pythonGH-136505https://github.com/python/cpython/pull/136505
picnixzhttps://github.com/picnixz
Jul 13, 2025 https://github.com/python/cpython/pull/136505#ref-commit-3ac5d3f
https://github.com/encukou
https://github.com/vstinner
https://github.com/picnixz
pythongh-111506https://github.com/python/cpython/issues/111506
: Add _Py_OPAQUE_PYOBJECT to hide PyObject layout & re…https://github.com/picnixz/cpython/commit/3ac5d3fdee74d1ba29cfa3f54dc66f204fa2b860
3ac5d3fhttps://github.com/picnixz/cpython/commit/3ac5d3fdee74d1ba29cfa3f54dc66f204fa2b860
pythonGH-136505https://github.com/python/cpython/pull/136505
taegyunkimhttps://github.com/taegyunkim
Aug 4, 2025 https://github.com/python/cpython/pull/136505#ref-commit-7875fbe
https://github.com/encukou
https://github.com/vstinner
https://github.com/taegyunkim
pythongh-111506https://github.com/python/cpython/issues/111506
: Add _Py_OPAQUE_PYOBJECT to hide PyObject layout & re…https://github.com/taegyunkim/cpython/commit/7875fbe557741606152278ba55c4db234bd2f204
7875fbehttps://github.com/taegyunkim/cpython/commit/7875fbe557741606152278ba55c4db234bd2f204
pythonGH-136505https://github.com/python/cpython/pull/136505
Agent-Hellboyhttps://github.com/Agent-Hellboy
Aug 19, 2025 https://github.com/python/cpython/pull/136505#ref-commit-cae2d31
https://github.com/encukou
https://github.com/vstinner
https://github.com/Agent-Hellboy
pythongh-111506https://github.com/python/cpython/issues/111506
: Add _Py_OPAQUE_PYOBJECT to hide PyObject layout & re…https://github.com/Agent-Hellboy/cpython/commit/cae2d31190d1df59bc146abf317b9c3a1edd3b92
cae2d31https://github.com/Agent-Hellboy/cpython/commit/cae2d31190d1df59bc146abf317b9c3a1edd3b92
pythonGH-136505https://github.com/python/cpython/pull/136505
https://github.com/encukou
encukouhttps://github.com/encukou
Mar 30, 2026 https://github.com/python/cpython/pull/136505#ref-issue-4171082238
Implement PEP 803 -- abi3t #146636 https://github.com/python/cpython/issues/146636
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%2F136505
https://github.com/vstinner
vstinner https://github.com/vstinner
https://github.com/python/cpython/pull/136505/files/33d9ae7cbeea2702baa8566617d48d855e0242f7
https://github.com/ericsnowcurrently
ericsnowcurrently https://github.com/ericsnowcurrently
Please reload this pagehttps://github.com/python/cpython/pull/136505
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Please reload this pagehttps://github.com/python/cpython/pull/136505
https://github.com/encukou
https://github.com/bedevere-bot
https://github.com/vstinner
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.