René's URL Explorer Experiment


Title: C API: No longer export internal C API functions · Issue #107211 · python/cpython · GitHub

Open Graph Title: C API: No longer export internal C API functions · Issue #107211 · python/cpython

X Title: C API: No longer export internal C API functions · Issue #107211 · python/cpython

Description: Many internal C API functions are exported with PyAPI_FUNC() and internal variables are exported with PyAPI_DATA(), whereas these APIs should not be used outside Python internals. I propose to replace PyAPI_FUNC() and PyAPI_DATA() with e...

Open Graph Description: Many internal C API functions are exported with PyAPI_FUNC() and internal variables are exported with PyAPI_DATA(), whereas these APIs should not be used outside Python internals. I propose to repl...

X Description: Many internal C API functions are exported with PyAPI_FUNC() and internal variables are exported with PyAPI_DATA(), whereas these APIs should not be used outside Python internals. I propose to repl...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"C API: No longer export internal C API functions","articleBody":"Many internal C API functions are exported with PyAPI_FUNC() and internal variables are exported with PyAPI_DATA(), whereas these APIs should not be used outside Python internals.\r\n\r\nI propose to replace PyAPI_FUNC() and PyAPI_DATA() with extern on symbols which are not used by stdlib shared extensions.\r\n\r\nThe exception should be to export, not the default. For example, the ``_PyObject_DebugMallocStats()`` function is exported by the 3rd party guppy3 project.\r\n\r\nSee also issue #106320: C API: Remove private C API functions (move them to the internal C API).\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-107212\n* gh-107213\n* gh-107214\n* gh-107215\n* gh-107217\n* gh-107218\n* gh-108012\n* gh-108229\n* gh-108422\n* gh-108423\n* gh-108424\n* gh-108425\n* gh-108435\n* gh-109037\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2023-07-25T00:07:18Z","url":"https://github.com/python/cpython/issues/107211"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4595ba23-3779-94d6-561d-069ab781f3da
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id893A:2270F4:37455C1:4947CD3:6B020989
html-safe-noncef8a7e6f221543bad819ad8af468d5a1cd5f3c5e95d34a8f3d6b5c29bf4c9826f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTNBOjIyNzBGNDozNzQ1NUMxOjQ5NDdDRDM6NkIwMjA5ODkiLCJ2aXNpdG9yX2lkIjoiNDA1MjE3NDY1NjI3MzI1NDc5MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacdd6aaaff9b871d158226d0c7d53a4a99e50fe44f1ba0182454e8fad944ee6f89
hovercard-subject-tagissue:1819317931
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/107211/issue_layout
twitter:imagehttps://opengraph.githubassets.com/cf874793da2a73d837490b9806a808011439509c8740b66774b080dfced99a67/python/cpython/issues/107211
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cf874793da2a73d837490b9806a808011439509c8740b66774b080dfced99a67/python/cpython/issues/107211
og:image:altMany internal C API functions are exported with PyAPI_FUNC() and internal variables are exported with PyAPI_DATA(), whereas these APIs should not be used outside Python internals. I propose to repl...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevstinner
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/107211#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F107211
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%2Fissues%2F107211
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/107211
Reloadhttps://github.com/python/cpython/issues/107211
Reloadhttps://github.com/python/cpython/issues/107211
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
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/107211
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/107211
C API: No longer export internal C API functionshttps://github.com/python/cpython/issues/107211#top
https://github.com/vstinner
topic-C-APIhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-C-API%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Jul 25, 2023https://github.com/python/cpython/issues/107211#issue-1819317931
#106320https://github.com/python/cpython/issues/106320
gh-107211: Rename PySymtable_Lookup() to _PySymtable_Lookup() #107212https://github.com/python/cpython/pull/107212
gh-107211: No longer export internal functions (1) #107213https://github.com/python/cpython/pull/107213
gh-107211: No longer export internal functions (2) #107214https://github.com/python/cpython/pull/107214
gh-107211: No longer export internal functions (3) #107215https://github.com/python/cpython/pull/107215
gh-107211: No longer export internal functions (4) #107217https://github.com/python/cpython/pull/107217
gh-107211: No longer export internal variables #107218https://github.com/python/cpython/pull/107218
gh-107211: Fix select extension build on Solaris #108012https://github.com/python/cpython/pull/108012
gh-107211: No longer export pycore_strhex.h functions #108229https://github.com/python/cpython/pull/108229
gh-107211: No longer export PyTime internal functions #108422https://github.com/python/cpython/pull/108422
gh-107211: No longer export internal functions (5) #108423https://github.com/python/cpython/pull/108423
gh-107211: No longer export internal functions (6) #108424https://github.com/python/cpython/pull/108424
gh-107211: No longer export internal functions (7) #108425https://github.com/python/cpython/pull/108425
gh-107211: Fix test_peg_generator #108435https://github.com/python/cpython/pull/108435
gh-107211: No longer export internal _PyLong_FromUid() #109037https://github.com/python/cpython/pull/109037
Nexthttps://github.com/python/cpython/issues/107211?timeline_page=1
vstinnerhttps://github.com/vstinner
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
topic-C-APIhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-C-API%22
on Jul 25, 2023https://github.com/python/cpython/issues/107211#event-9905810141
vstinnerhttps://github.com/vstinner
on Jul 25, 2023https://github.com/python/cpython/issues/107211#event-9905821985
pythongh-107211: Rename PySymtable_Lookup() to _PySymtable_Lookup()https://github.com/vstinner/cpython/commit/3ba33ba355b8ef323cc90747ad8931497d6c57f9
pythongh-107211https://github.com/python/cpython/issues/107211
3ba33bahttps://github.com/vstinner/cpython/commit/3ba33ba355b8ef323cc90747ad8931497d6c57f9
pythongh-107211: No longer export internal functions (1)https://github.com/vstinner/cpython/commit/f1264108f95abe901f63ebf3e7939cabcb58f6dc
pythongh-107211https://github.com/python/cpython/issues/107211
f126410https://github.com/vstinner/cpython/commit/f1264108f95abe901f63ebf3e7939cabcb58f6dc
pythongh-107211: No longer export internal functions (1)https://github.com/vstinner/cpython/commit/f17f73bab3012dc752f2ad513ae29adc21f04fbf
pythongh-107211https://github.com/python/cpython/issues/107211
f17f73bhttps://github.com/vstinner/cpython/commit/f17f73bab3012dc752f2ad513ae29adc21f04fbf
pythongh-107211: No longer export internal functions (2)https://github.com/vstinner/cpython/commit/601d099f17b054a40423629ed154b16b0007bae3
pythongh-107211https://github.com/python/cpython/issues/107211
601d099https://github.com/vstinner/cpython/commit/601d099f17b054a40423629ed154b16b0007bae3
pythongh-107211: No longer export internal functions (3)https://github.com/vstinner/cpython/commit/a906376f48751809e03aabf8223cdac658bca4a3
pythongh-107211https://github.com/python/cpython/issues/107211
a906376https://github.com/vstinner/cpython/commit/a906376f48751809e03aabf8223cdac658bca4a3
pythongh-107211: No longer export internal functions (1)https://github.com/vstinner/cpython/commit/8b7c505943293b25ea241ade8806b93ecb5a6f97
pythongh-107211https://github.com/python/cpython/issues/107211
8b7c505https://github.com/vstinner/cpython/commit/8b7c505943293b25ea241ade8806b93ecb5a6f97
pythongh-107211: No longer export internal functions (1)https://github.com/vstinner/cpython/commit/f045079f22c174b1fd16b5532726f83636d94c52
pythongh-107211https://github.com/python/cpython/issues/107211
f045079https://github.com/vstinner/cpython/commit/f045079f22c174b1fd16b5532726f83636d94c52
gh-107211: Rename PySymtable_Lookup() to _PySymtable_Lookup() (#107212)https://github.com/python/cpython/commit/2e0744955f1c213a55738de848a9d928b78ef289
gh-107211https://github.com/python/cpython/issues/107211
#107212https://github.com/python/cpython/pull/107212
2e07449https://github.com/python/cpython/commit/2e0744955f1c213a55738de848a9d928b78ef289
pythongh-107211: No longer export internal functions (2)https://github.com/vstinner/cpython/commit/85d3727011edffad9bb1acc5fcff9571e50c6880
pythongh-107211https://github.com/python/cpython/issues/107211
85d3727https://github.com/vstinner/cpython/commit/85d3727011edffad9bb1acc5fcff9571e50c6880
pythongh-107211: No longer export internal functions (1)https://github.com/vstinner/cpython/commit/64e11f6c0ffc47bfce54da417dba2742e4980cef
pythongh-107211https://github.com/python/cpython/issues/107211
64e11f6https://github.com/vstinner/cpython/commit/64e11f6c0ffc47bfce54da417dba2742e4980cef
pythongh-107211: No longer export internal functions (3)https://github.com/vstinner/cpython/commit/0a9388daf2dc1e97d2c1d804299676bfdb01df8a
pythongh-107211https://github.com/python/cpython/issues/107211
0a9388dhttps://github.com/vstinner/cpython/commit/0a9388daf2dc1e97d2c1d804299676bfdb01df8a
pythongh-107211: No longer export internal functions (3)https://github.com/vstinner/cpython/commit/1894882d5605355ffefdcee037b873219b480ab0
pythongh-107211https://github.com/python/cpython/issues/107211
1894882https://github.com/vstinner/cpython/commit/1894882d5605355ffefdcee037b873219b480ab0
gh-107211: No longer export internal functions (1) (#107213)https://github.com/python/cpython/commit/11306a91bd316bb8d9a42ff188626ac5f76b3684
gh-107211https://github.com/python/cpython/issues/107211
#107213https://github.com/python/cpython/pull/107213
11306a9https://github.com/python/cpython/commit/11306a91bd316bb8d9a42ff188626ac5f76b3684
vstinnerhttps://github.com/vstinner
on Aug 24, 2023https://github.com/python/cpython/issues/107211#event-10182581343
pythongh-107211: No longer export internal functions (7)https://github.com/vstinner/cpython/commit/d0152f83184f62fc746bdf84a2ac27ef1f5006ed
pythongh-107211https://github.com/python/cpython/issues/107211
d0152f8https://github.com/vstinner/cpython/commit/d0152f83184f62fc746bdf84a2ac27ef1f5006ed
pythongh-107211: No longer export internal functions (7)https://github.com/vstinner/cpython/commit/25d79fcea751979e3e1eeaf11da1bb81ae07f0b1
pythongh-107211https://github.com/python/cpython/issues/107211
25d79fchttps://github.com/vstinner/cpython/commit/25d79fcea751979e3e1eeaf11da1bb81ae07f0b1
pythongh-107211: No longer export internal functions (5)https://github.com/vstinner/cpython/commit/307c3fe051741af0ec5022b912c2fa9033b80ddc
pythongh-107211https://github.com/python/cpython/issues/107211
307c3fehttps://github.com/vstinner/cpython/commit/307c3fe051741af0ec5022b912c2fa9033b80ddc
gh-107211: No longer export PyTime internal functions (#108422)https://github.com/python/cpython/commit/3f7e93be51699fca6ee72c656278732b47cca833
gh-107211https://github.com/python/cpython/issues/107211
#108422https://github.com/python/cpython/pull/108422
3f7e93bhttps://github.com/python/cpython/commit/3f7e93be51699fca6ee72c656278732b47cca833
gh-107211: No longer export internal functions (6) (#108424)https://github.com/python/cpython/commit/ea871c9b0f08399e440baed95a3e5793d6e0ea66
gh-107211https://github.com/python/cpython/issues/107211
#108424https://github.com/python/cpython/pull/108424
ea871c9https://github.com/python/cpython/commit/ea871c9b0f08399e440baed95a3e5793d6e0ea66
pythongh-107211: No longer export internal functions (5)https://github.com/vstinner/cpython/commit/1c53af2ae1bb944ef0204a58810a22ed29f288d0
pythongh-107211https://github.com/python/cpython/issues/107211
1c53af2https://github.com/vstinner/cpython/commit/1c53af2ae1bb944ef0204a58810a22ed29f288d0
gh-107211: No longer export internal functions (7) (#108425)https://github.com/python/cpython/commit/f1ae706ca53d43890cf09ccf052d783e97ba4b28
gh-107211https://github.com/python/cpython/issues/107211
#108425https://github.com/python/cpython/pull/108425
f1ae706https://github.com/python/cpython/commit/f1ae706ca53d43890cf09ccf052d783e97ba4b28
gh-107211: No longer export internal functions (5) (#108423)https://github.com/python/cpython/commit/b7808820b12b2df30cb21d8e8a5634e3ff97e376
gh-107211https://github.com/python/cpython/issues/107211
#108423https://github.com/python/cpython/pull/108423
b780882https://github.com/python/cpython/commit/b7808820b12b2df30cb21d8e8a5634e3ff97e376
pythongh-107211: Fix test_peg_generatorhttps://github.com/vstinner/cpython/commit/312d377a09879c908f3b59b5eef831fa2b03d6a1
pythongh-107211https://github.com/python/cpython/issues/107211
312d377https://github.com/vstinner/cpython/commit/312d377a09879c908f3b59b5eef831fa2b03d6a1
gh-107211: Fix test_peg_generator (#108435)https://github.com/python/cpython/commit/fa6933e035ba81ae3ed6ceac61b901a3d52b1e30
gh-107211https://github.com/python/cpython/issues/107211
#108435https://github.com/python/cpython/pull/108435
fa6933ehttps://github.com/python/cpython/commit/fa6933e035ba81ae3ed6ceac61b901a3d52b1e30
vstinnerhttps://github.com/vstinner
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Aug 26, 2023https://github.com/python/cpython/issues/107211#event-10198394509
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Aug 26, 2023https://github.com/python/cpython/issues/107211#issuecomment-1694129880
vstinnerhttps://github.com/vstinner
on Sep 6, 2023https://github.com/python/cpython/issues/107211#event-10301386694
pythongh-107211: No longer export internal _PyLong_FromUid()https://github.com/vstinner/cpython/commit/d7529e121fe31decdb6f267f59b29f3c33c9d2c9
pythongh-107211https://github.com/python/cpython/issues/107211
d7529e1https://github.com/vstinner/cpython/commit/d7529e121fe31decdb6f267f59b29f3c33c9d2c9
pythongh-107211: No longer export internal _PyLong_FromUid()https://github.com/vstinner/cpython/commit/b74fe2a0ec2269fffae3b13a3dcbddd2d571b7f2
pythongh-107211https://github.com/python/cpython/issues/107211
b74fe2ahttps://github.com/vstinner/cpython/commit/b74fe2a0ec2269fffae3b13a3dcbddd2d571b7f2
gh-107211: No longer export internal _PyLong_FromUid() (#109037)https://github.com/python/cpython/commit/19eddb515a8cf87df7aaa347379b3e56c324385b
gh-107211https://github.com/python/cpython/issues/107211
#109037https://github.com/python/cpython/pull/109037
19eddb5https://github.com/python/cpython/commit/19eddb515a8cf87df7aaa347379b3e56c324385b
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/107211
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/107211
vstinnerhttps://github.com/vstinner
topic-C-APIhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-C-API%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
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.