René's URL Explorer Experiment


Title: Undocumented 3.14 C API · Issue #135755 · python/cpython · GitHub

Open Graph Title: Undocumented 3.14 C API · Issue #135755 · python/cpython

X Title: Undocumented 3.14 C API · Issue #135755 · python/cpython

Description: The following public C API is new in 3.14 (beta 3 & 4, relative to 3.13.0), and as of this writing it looks either: undocumented, documented incorrectly, or public by mistake. previously: 3.13 Py_INCREF_MORTAL: Include/refcount.h:251 (#1...

Open Graph Description: The following public C API is new in 3.14 (beta 3 & 4, relative to 3.13.0), and as of this writing it looks either: undocumented, documented incorrectly, or public by mistake. previously: 3.13 Py_I...

X Description: The following public C API is new in 3.14 (beta 3 & 4, relative to 3.13.0), and as of this writing it looks either: undocumented, documented incorrectly, or public by mistake. previously: 3.13 ...

Opengraph URL: https://github.com/python/cpython/issues/135755

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Undocumented 3.14 C API","articleBody":"The following public C API is new in 3.14 (beta 3 \u0026 4, relative to 3.13.0), and as of this writing it looks either:\n\n- undocumented,\n- documented incorrectly, or\n- public by mistake.\n\n*previously: [3.13](https://github.com/python/cpython/issues/118915)*\n\n---\n\n- [x] `Py_INCREF_MORTAL`: Include/refcount.h:251 (https://github.com/python/cpython/issues/127705#issuecomment-3004277530)\n- [x] `MAX_SCRIPT_PATH_SIZE`: Include/cpython/pystate.h:31 ([PEP 768](https://discuss.python.org/t/pep-768-safe-external-debugger-interface-for-cpython/73969/58), #135924)\n  - [x] `Py_MAX_SCRIPT_PATH_SIZE`\n- [x] `PyFunction_GET_BUILTINS`: Include/cpython/funcobject.h:100 (added in #133128; assigned to @ZeroIntensity) (#135938)\n- [x] `struct _remote_debugger_support`: Include/cpython/pystate.h:32 ([PEP 768](https://discuss.python.org/t/pep-768-safe-external-debugger-interface-for-cpython/73969/58), #135924)\n\n\"`PYOS`\" (#135928):\n\n- [x] `PYOS_LOG2_STACK_MARGIN`: Include/pythonrun.h\n- [x] `PYOS_STACK_MARGIN_BYTES`: Include/pythonrun.h\n- [x] `PYOS_STACK_MARGIN_SHIFT`: Include/pythonrun.h\n\n\"`SPECIAL`\" (#135922):\n\n- [x] `SPECIAL_MAX`: Include/ceval.h\n- [x] `SPECIAL___AENTER__`: Include/ceval.h\n- [x] `SPECIAL___AEXIT__`: Include/ceval.h\n- [x] `SPECIAL___ENTER__`: Include/ceval.h\n- [x] `SPECIAL___EXIT__`: Include/ceval.h\n\nHeader guards (traditionally named `Py_*_H`, but a leading underscore would be better for new ones) (#135921):\n\n- [x] `Py_AUDIT_H`: Include/audit.h\n- [x] `Py_CPYTHON_AUDIT_H`: Include/audit.h\n- [x] `Py_REFCOUNT_H`: Include/refcount.h\n\nNew configure constants.\n(IMO, if we don't want users to touch these, they should use the `_Py` prefix.\nIf we *do* want users to use them, they need docs.)\n\n- [x] `Py_FFI_SUPPORT_C_COMPLEX` (#135932)\n- [x] `Py_NORMALIZE_CENTURY` (#135933)\n- [x] `Py_REMOTE_DEBUG` (#135929)\n- [x] `HACL_CAN_COMPILE_SIMD128` (#135847)\n- [x] `HACL_CAN_COMPILE_SIMD256` (#135847)\n\nNew `HAVE` configure constants -- a lost cause:\n\n- [x] `HAVE_BACKTRACE`\n- [x] `HAVE_DECL_UT_NAMESIZE`\n- [x] `HAVE_DLADDR`\n- [x] `HAVE_DLADDR1`\n- [x] `HAVE_EXECINFO_H`\n- [x] `HAVE_GETLOGIN_R`\n- [x] `HAVE_LINK_H`\n- [x] `HAVE_LINUX_NETFILTER_IPV4_H`\n- [x] `HAVE_LINUX_SCHED_H`\n- [x] `HAVE_PTHREAD_GETATTR_NP`\n- [x] `HAVE_PTHREAD_GETNAME_NP`\n- [x] `HAVE_PTHREAD_SETNAME_NP`\n- [x] `HAVE_SYS_PIDFD_H`3\n- [x] `HAVE_TTYNAME_R`\n- [x] `HAVE_USABLE_WCHAR_T`\n- [x] `HAVE_UT_NAMESIZE`\n\nNew `CO_` flags (documented in [inspect](https://docs.python.org/3.14/library/inspect.html#code-objects-bit-flags); Sphinx sees none of these as C macros): (#135980)\n\n- [x] `CO_HAS_DOCSTRING`: Include/cpython/code.h:115\n- [x] `CO_METHOD`: Include/cpython/code.h:115\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-135762\n* gh-135847\n* gh-135861\n* gh-135916\n* gh-135917\n* gh-135921\n* gh-135922\n* gh-135926\n* gh-135934\n* gh-135938\n* gh-135976\n* gh-135980\n* gh-136045\n* gh-136370\n* gh-136371\n* gh-138350\n* gh-138356\n* gh-138981\n* gh-139120\n\u003c!-- /gh-linked-prs --\u003e\n\n\n* Check links above! I prefer attaching doc fixes \u0026 renames to issues that added the API.\n","author":{"url":"https://github.com/encukou","@type":"Person","name":"encukou"},"datePublished":"2025-06-20T13:29:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":19},"url":"https://github.com/135755/cpython/issues/135755"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:3b872926-9431-c6b5-9002-4561680c9c53
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCDE8:3960C0:7B3096:AE11D8:696A138D
html-safe-nonceeb70a58e353640663c77e22ab1adb03809489f45c687fc6c8119ee21c97f30a8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDREU4OjM5NjBDMDo3QjMwOTY6QUUxMUQ4OjY5NkExMzhEIiwidmlzaXRvcl9pZCI6IjM1ODk5NzQ3NjAxOTY3MTk0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac872a8b74e74da25134f02351eb278ad2374e8f48e0af1fc6df720feb7fc44fae
hovercard-subject-tagissue:3163362632
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/135755/issue_layout
twitter:imagehttps://opengraph.githubassets.com/83bf6a0b14724cae6ae1b2a94d16021c9ef54b59d6490ade5f19fc4d1106b2b2/python/cpython/issues/135755
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/83bf6a0b14724cae6ae1b2a94d16021c9ef54b59d6490ade5f19fc4d1106b2b2/python/cpython/issues/135755
og:image:altThe following public C API is new in 3.14 (beta 3 & 4, relative to 3.13.0), and as of this writing it looks either: undocumented, documented incorrectly, or public by mistake. previously: 3.13 Py_I...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameencukou
hostnamegithub.com
expected-hostnamegithub.com
None699227a00bbb7fe1eec276d2ae1c3a93068bc5ba483bd9dc4b2a27a8f4f2f595
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
release7266b2d935baa1c6474b16dd9feaa5ca30607261
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/135755#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F135755
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%2Fissues%2F135755
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/135755
Reloadhttps://github.com/python/cpython/issues/135755
Reloadhttps://github.com/python/cpython/issues/135755
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/135755
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/issues/135755
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
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/135755
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/135755
Undocumented 3.14 C APIhttps://github.com/python/cpython/issues/135755#top
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
docsDocumentation in the Doc dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22docs%22
topic-C-APIhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-C-API%22
https://github.com/encukou
https://github.com/encukou
encukouhttps://github.com/encukou
on Jun 20, 2025https://github.com/python/cpython/issues/135755#issue-3163362632
3.13https://github.com/python/cpython/issues/118915
Use tagged pointers on the stack in the default build. #127705 (comment)https://github.com/python/cpython/issues/127705#issuecomment-3004277530
PEP 768https://discuss.python.org/t/pep-768-safe-external-debugger-interface-for-cpython/73969/58
gh-131591: Add Py_ prefix to MAX_SCRIPT_PATH_SIZE; remove unprefixed struct tag #135924https://github.com/python/cpython/pull/135924
gh-132775: Add _PyCode_GetVarCounts() #133128https://github.com/python/cpython/pull/133128
@ZeroIntensityhttps://github.com/ZeroIntensity
gh-135755: Move PyFunction_GET_BUILTINS to the private API #135938https://github.com/python/cpython/pull/135938
PEP 768https://discuss.python.org/t/pep-768-safe-external-debugger-interface-for-cpython/73969/58
gh-131591: Add Py_ prefix to MAX_SCRIPT_PATH_SIZE; remove unprefixed struct tag #135924https://github.com/python/cpython/pull/135924
#135928https://github.com/python/cpython/pull/135928
#135922https://github.com/python/cpython/pull/135922
#135921https://github.com/python/cpython/pull/135921
gh-125206: Make _Py_FFI_SUPPORT_C_COMPLEX private #135932https://github.com/python/cpython/pull/135932
gh-120713: Make _Py_NORMALIZE_CENTURY private #135933https://github.com/python/cpython/pull/135933
gh-131591: Document Py_REMOTE_DEBUG #135929https://github.com/python/cpython/pull/135929
gh-135755: rename undocumented HACL_CAN_COMPILE_SIMD{128,256} macros #135847https://github.com/python/cpython/pull/135847
gh-135755: rename undocumented HACL_CAN_COMPILE_SIMD{128,256} macros #135847https://github.com/python/cpython/pull/135847
inspecthttps://docs.python.org/3.14/library/inspect.html#code-objects-bit-flags
#135980https://github.com/python/cpython/pull/135980
gh-135755: Docs: C API: Document missing PyFunction_GET* macros #135762https://github.com/python/cpython/pull/135762
gh-135755: rename undocumented HACL_CAN_COMPILE_SIMD{128,256} macros #135847https://github.com/python/cpython/pull/135847
gh-95245: Document Py_TPFLAGS_PREHEADER #135861https://github.com/python/cpython/pull/135861
[3.14] gh-135755: Docs: C API: Document missing PyFunction_GET* macros (GH-135762) #135916https://github.com/python/cpython/pull/135916
[3.13] gh-135755: Docs: C API: Document missing PyFunction_GET* macros (GH-135762) #135917https://github.com/python/cpython/pull/135917
gh-135755: Use private names (_Py*) for header file guards new in 3.14 #135921https://github.com/python/cpython/pull/135921
gh-135755: Move SPECIAL_ constants to a private header #135922https://github.com/python/cpython/pull/135922
[3.14] gh-135755: Move SPECIAL_ constants to a private header (GH-135922) #135926https://github.com/python/cpython/pull/135926
gh-135755: Document the new PyFunction_GET_BUILTINS macro #135934https://github.com/python/cpython/pull/135934
gh-135755: Move PyFunction_GET_BUILTINS to the private API #135938https://github.com/python/cpython/pull/135938
[3.14] gh-135755: Use private names (_Py*) for header file guards new in 3.14 (GH-135921) #135976https://github.com/python/cpython/pull/135976
gh-135755: Document __future__.* and CO_* as proper Sphinx objects #135980https://github.com/python/cpython/pull/135980
[3.14] gh-135755: rename undocumented HACL_CAN_COMPILE_SIMD{128,256} macros (GH-135847) #136045https://github.com/python/cpython/pull/136045
[3.14] gh-135755: Document __future__.* and CO_* as proper Sphinx objects (GH-135980) #136370https://github.com/python/cpython/pull/136370
[3.13] gh-135755: Document __future__.* and CO_* as proper Sphinx objects (GH-135980) #136371https://github.com/python/cpython/pull/136371
gh-135755: Make Py_MAX_SCRIPT_PATH_SIZE private #138350https://github.com/python/cpython/pull/138350
[3.14] gh-135755: Make Py_MAX_SCRIPT_PATH_SIZE private (GH-138350) #138356https://github.com/python/cpython/pull/138356
gh-135755: Make Py_TAIL_CALL_INTERP macro private #138981https://github.com/python/cpython/pull/138981
[3.14] gh-135755: Make Py_TAIL_CALL_INTERP macro private (#138981) #139120https://github.com/python/cpython/pull/139120
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
docsDocumentation in the Doc dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22docs%22
topic-C-APIhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-C-API%22
docs issueshttps://github.com/orgs/python/projects/52
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.