René's URL Explorer Experiment


Title: Add `sys.abi_info` to make information about the interpreter ABI more accessible · Issue #133143 · python/cpython · GitHub

Open Graph Title: Add `sys.abi_info` to make information about the interpreter ABI more accessible · Issue #133143 · python/cpython

X Title: Add `sys.abi_info` to make information about the interpreter ABI more accessible · Issue #133143 · python/cpython

Description: Feature or enhancement Proposal: Early on in the discussion of PEP 780: ABI features as environment markers a certain shortcoming of ABI information availability was identified and discussed. One suggestion was to adopt a new mechanism f...

Open Graph Description: Feature or enhancement Proposal: Early on in the discussion of PEP 780: ABI features as environment markers a certain shortcoming of ABI information availability was identified and discussed. One s...

X Description: Feature or enhancement Proposal: Early on in the discussion of PEP 780: ABI features as environment markers a certain shortcoming of ABI information availability was identified and discussed. One s...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add `sys.abi_info` to make information about the interpreter ABI more accessible","articleBody":"# Feature or enhancement\n\n### Proposal:\n\n[Early on](https://discuss.python.org/t/environment-marker-for-free-threading/60007/8) in the discussion of [PEP 780: ABI features as environment markers](https://peps.python.org/pep-0780/) a certain shortcoming of ABI information availability was identified and discussed.\nOne suggestion was to adopt a new mechanism for making this kind of information available, which initially was included as a proposal in PEP 780 itself. However, that PEP is aimed at improving the packaging situation and to improve that focus, the addition to the standard library is no longer part of it.\n\nHere, we propose to add ABI information to the standard library in the form of a new attribute to the `sys` module.\n\nIn PEP 780 three ABI features are identified, namely\n\n- `free-threading` or `gil-enabled` (only CPython)\n  If the Python interpreter is free-threaded, the `free-threading` feature MUST be present and the `gil-enabled` feature MUST NOT be present. Otherwise, the `gil-enabled` feature MUST be present and the `free-threading` feature MUST NOT be present.\n\n- `debug` (only CPython, optional)\n  This ABI feature is reserved for the `--with-pydebug` build of CPython. If the interpreter is a CPython interpreter with `Py_DEBUG` capabilities, the `debug` feature MUST be present. On POSIX systems, this corresponds to the Python expression `\"d\" in sys.abiflags`.\n\n- `32-bit` or `64-bit` (optional)\n  The bitness of the interpreter, that is, whether it is a 32-bit or 64-bit build. If the bitness is unknown or neither 32-bit nor 64-bit, this feature MUST NOT be present.\n  \nA reference implementation of this feature [is available](https://github.com/zklaus/cpython/pull/1), which adds these features as a frozen set of identifying strings to `sys.abi_features`. \n\nFor purposes of the environment markers defined in PEP 780, only the presence or absence of the features is relevant. However, in the discussion of the reference implementation @FFY00 suggested that a more comprehensive implementation might be useful, for example providing additional information about the ABI features, such as their representation in `sys.abiflags` (which directly impacts their possible representation in the ABI tags used for wheels and extension modules), or their default state.\n\nThis addition to the standard library will make crucial ABI information much easier to access.\n\nWe think this fully backwards compatible addition can be made with a simple pull request.\n\nIt would be great to hear from the CPython team.\n\nDo you agree that this is a useful feature?\n\nDo you think detailed information beyond simple presence or absence of ABI features should be included?\n\nDo you have suggestions for the exact API?\n\n### Has this already been discussed elsewhere?\n\nI have already discussed this feature proposal on Discourse\n\n### Links to previous discussion of this feature:\n\n[Initial thoughts](https://discuss.python.org/t/environment-marker-for-free-threading/60007/8) on this feature, have surfaced in the discussions leading to PEP 780.\nDuring the discussion of the PEP, [further comments](https://github.com/python/peps/pull/4315#discussion_r2007997314) were [made](https://discuss.python.org/t/pep-780-abi-features-as-environment-markers/86013/7), leading to the separation from the PEP with further review comments [available](https://github.com/zklaus/cpython/pull/1).\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-137476\n* gh-138672\n* gh-138698\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/zklaus","@type":"Person","name":"zklaus"},"datePublished":"2025-04-29T10:21:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/133143/cpython/issues/133143"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:01520be6-d1fc-594a-0d24-ac6bbe1c91ad
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBB2A:30A1AE:5378A0C:74AB00A:6A551144
html-safe-nonceb7ef97a4990f9d4f2da5187013c74ecea46cccc3f7b550a15cc4e7c32b04b67a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjJBOjMwQTFBRTo1Mzc4QTBDOjc0QUIwMEE6NkE1NTExNDQiLCJ2aXNpdG9yX2lkIjoiOTU5MjM2MDgyMTE3MTg1ODYwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac0a6c1d1f9d0a2157bbb4acb7d0d6315d15f90055e2bbaefe2cc27f70adddd59c
hovercard-subject-tagissue:3027808019
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/133143/issue_layout
twitter:imagehttps://opengraph.githubassets.com/766edaac9984739b4368f391df91c8396ac375b0de4e1b7cf9093aaf7967158e/python/cpython/issues/133143
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/766edaac9984739b4368f391df91c8396ac375b0de4e1b7cf9093aaf7967158e/python/cpython/issues/133143
og:image:altFeature or enhancement Proposal: Early on in the discussion of PEP 780: ABI features as environment markers a certain shortcoming of ABI information availability was identified and discussed. One s...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamezklaus
hostnamegithub.com
expected-hostnamegithub.com
None682d273eacb2ac51680c6eb9c0b270f029f7ce74c32090f319083c34497e28a5
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
release0f2adbaa4b43ea302b02981f637a782ae92ed6dc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/133143#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F133143
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/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/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/enterprise/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%2F133143
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/133143
Reloadhttps://github.com/python/cpython/issues/133143
Reloadhttps://github.com/python/cpython/issues/133143
Please reload this pagehttps://github.com/python/cpython/issues/133143
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/133143
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.8k 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
Add sys.abi_info to make information about the interpreter ABI more accessiblehttps://github.com/python/cpython/issues/133143#top
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
https://github.com/zklaus
zklaushttps://github.com/zklaus
on Apr 29, 2025https://github.com/python/cpython/issues/133143#issue-3027808019
Early onhttps://discuss.python.org/t/environment-marker-for-free-threading/60007/8
PEP 780: ABI features as environment markershttps://peps.python.org/pep-0780/
is availablehttps://github.com/zklaus/cpython/pull/1
@FFY00https://github.com/FFY00
Initial thoughtshttps://discuss.python.org/t/environment-marker-for-free-threading/60007/8
further commentshttps://github.com/python/peps/pull/4315#discussion_r2007997314
madehttps://discuss.python.org/t/pep-780-abi-features-as-environment-markers/86013/7
availablehttps://github.com/zklaus/cpython/pull/1
gh-133143: Make information about the interpreter ABI more accessible #137476https://github.com/python/cpython/pull/137476
gh-133143: Condense the implementation for sys.abi_info #138672https://github.com/python/cpython/pull/138672
gh-133143: Use _Py_ID for the other literals in sys #138698https://github.com/python/cpython/pull/138698
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%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.