René's URL Explorer Experiment


Title: GH-101291: Low level opt-in API for pylong by markshannon · Pull Request #101685 · python/cpython · GitHub

Open Graph Title: GH-101291: Low level opt-in API for pylong by markshannon · Pull Request #101685 · python/cpython

X Title: GH-101291: Low level opt-in API for pylong by markshannon · Pull Request #101685 · python/cpython

Description: This is a stop-gap solution, until we decide on future directions for the C-API. Adds some inline functions to allow fast access to the value of PyLongObject objects, without explicitly probing the internals. These new functions will be guarded by PY_UNSTABLE_PYLONG_ABI. In the future we may: Add the non-inline versions of the functions to the full API (removing the underscore) Replace PY_UNSTABLE_PYLONG_ABI with a more general ABI selector flag. @encukou Is this OK as a stopgap? @scoder Is this usable by Cython? Issue: gh-101291

Open Graph Description: This is a stop-gap solution, until we decide on future directions for the C-API. Adds some inline functions to allow fast access to the value of PyLongObject objects, without explicitly probing the...

X Description: This is a stop-gap solution, until we decide on future directions for the C-API. Adds some inline functions to allow fast access to the value of PyLongObject objects, without explicitly probing the...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:20834333-0693-b3ff-de42-d0eab813b0b9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id80D0:C9338:7D3ED3:A343EC:696B165B
html-safe-nonce882b5179f066af3329cfc6ac0a980ba40755b18b762432179f674ae93455ce80
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MEQwOkM5MzM4OjdEM0VEMzpBMzQzRUM6Njk2QjE2NUIiLCJ2aXNpdG9yX2lkIjoiNTg2MjQ5NDI0MDQxMDExMzYyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac69ac9e9bbf288d7229b774f1d2cd26aa196a3c150b1a9002a54fd1dfdd631f5c
hovercard-subject-tagpull_request:1233270868
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/101685/files
twitter:imagehttps://avatars.githubusercontent.com/u/9448417?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/9448417?s=400&v=4
og:image:altThis is a stop-gap solution, until we decide on future directions for the C-API. Adds some inline functions to allow fast access to the value of PyLongObject objects, without explicitly probing the...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/101685/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F101685%2Ffiles
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%2Fpull%2F101685%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/101685/files
Reloadhttps://github.com/python/cpython/pull/101685/files
Reloadhttps://github.com/python/cpython/pull/101685/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/101685/files
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/pull/101685/files
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
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
markshannonhttps://github.com/markshannon
python:mainhttps://github.com/python/cpython/tree/main
faster-cpython:low-level-pylong-apihttps://github.com/faster-cpython/cpython/tree/low-level-pylong-api
Conversation 91 https://github.com/python/cpython/pull/101685
Commits 3 https://github.com/python/cpython/pull/101685/commits
Checks 0 https://github.com/python/cpython/pull/101685/checks
Files changed https://github.com/python/cpython/pull/101685/files
Please reload this pagehttps://github.com/python/cpython/pull/101685/files
GH-101291: Low level opt-in API for pylong https://github.com/python/cpython/pull/101685/files#top
Show all changes 3 commits https://github.com/python/cpython/pull/101685/files
218af9e Add low level unstable API for fast access to 'small' ints. markshannon May 4, 2023 https://github.com/python/cpython/pull/101685/commits/218af9e0ffb8f19925e50965f55ff1e7115acf77
fc620bb Expose inline versions of _PyLong_IsCompact & _PyLong_CompactValue encukou May 19, 2023 https://github.com/python/cpython/pull/101685/commits/fc620bb820e5e04e459ab82c89d153619dcca2c2
1d2650e Fix static assert. markshannon May 13, 2023 https://github.com/python/cpython/pull/101685/commits/1d2650e980593b220c68175c4aeb8935a8ab5ac4
Clear filters https://github.com/python/cpython/pull/101685/files
Please reload this pagehttps://github.com/python/cpython/pull/101685/files
Please reload this pagehttps://github.com/python/cpython/pull/101685/files
long.rst https://github.com/python/cpython/pull/101685/files#diff-f7ea0c9d5f3938154e77dd16491f5a73ee80085961662b32e88a71107cb157fa
longintrepr.h https://github.com/python/cpython/pull/101685/files#diff-c3cb5b87a5019019dc5ed8afef49205c5bcee705af552395544aa84bf8c8f8a1
longobject.h https://github.com/python/cpython/pull/101685/files#diff-5efcdf3c1e04e77ea70da2b98a864b76282d75afc5675100eaf7cf466cf83ac4
pycore_long.h https://github.com/python/cpython/pull/101685/files#diff-0817b8ffc6c3af36ea39ebabafe70c849d6ee7cb6621d3bda857f3ed25a37511
test_long.py https://github.com/python/cpython/pull/101685/files#diff-cc3c55fb42d8833c85cfb69e864008af59140bcf80ac0cdd411c98688dc534c4
2023-05-18-20-53-05.gh-issue-101291.ZBh9aR.rst https://github.com/python/cpython/pull/101685/files#diff-c1be5293496f68b148e6d198fa378406a7f846b2ce181d131a4822b025ef2922
long.c https://github.com/python/cpython/pull/101685/files#diff-fb4adcb9ec0f5a40194fc9d5ef20b0f17600f316040899fea116db659718d141
longobject.c https://github.com/python/cpython/pull/101685/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a
Doc/c-api/long.rsthttps://github.com/python/cpython/pull/101685/files#diff-f7ea0c9d5f3938154e77dd16491f5a73ee80085961662b32e88a71107cb157fa
View file https://github.com/faster-cpython/cpython/blob/1d2650e980593b220c68175c4aeb8935a8ab5ac4/Doc/c-api/long.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/101685/{{ revealButtonHref }}
https://github.com/python/cpython/pull/101685/files#diff-f7ea0c9d5f3938154e77dd16491f5a73ee80085961662b32e88a71107cb157fa
Include/cpython/longintrepr.hhttps://github.com/python/cpython/pull/101685/files#diff-c3cb5b87a5019019dc5ed8afef49205c5bcee705af552395544aa84bf8c8f8a1
View file https://github.com/faster-cpython/cpython/blob/1d2650e980593b220c68175c4aeb8935a8ab5ac4/Include/cpython/longintrepr.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/101685/{{ revealButtonHref }}
https://github.com/python/cpython/pull/101685/files#diff-c3cb5b87a5019019dc5ed8afef49205c5bcee705af552395544aa84bf8c8f8a1
https://github.com/python/cpython/pull/101685/files#diff-c3cb5b87a5019019dc5ed8afef49205c5bcee705af552395544aa84bf8c8f8a1
Include/cpython/longobject.hhttps://github.com/python/cpython/pull/101685/files#diff-5efcdf3c1e04e77ea70da2b98a864b76282d75afc5675100eaf7cf466cf83ac4
View file https://github.com/faster-cpython/cpython/blob/1d2650e980593b220c68175c4aeb8935a8ab5ac4/Include/cpython/longobject.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/101685/{{ revealButtonHref }}
https://github.com/python/cpython/pull/101685/files#diff-5efcdf3c1e04e77ea70da2b98a864b76282d75afc5675100eaf7cf466cf83ac4
Include/internal/pycore_long.hhttps://github.com/python/cpython/pull/101685/files#diff-0817b8ffc6c3af36ea39ebabafe70c849d6ee7cb6621d3bda857f3ed25a37511
View file https://github.com/faster-cpython/cpython/blob/1d2650e980593b220c68175c4aeb8935a8ab5ac4/Include/internal/pycore_long.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/101685/{{ revealButtonHref }}
https://github.com/python/cpython/pull/101685/files#diff-0817b8ffc6c3af36ea39ebabafe70c849d6ee7cb6621d3bda857f3ed25a37511
Please reload this pagehttps://github.com/python/cpython/pull/101685/files
https://github.com/python/cpython/pull/101685/files#diff-0817b8ffc6c3af36ea39ebabafe70c849d6ee7cb6621d3bda857f3ed25a37511
https://github.com/python/cpython/pull/101685/files#diff-0817b8ffc6c3af36ea39ebabafe70c849d6ee7cb6621d3bda857f3ed25a37511
https://github.com/python/cpython/pull/101685/files#diff-0817b8ffc6c3af36ea39ebabafe70c849d6ee7cb6621d3bda857f3ed25a37511
Lib/test/test_capi/test_long.pyhttps://github.com/python/cpython/pull/101685/files#diff-cc3c55fb42d8833c85cfb69e864008af59140bcf80ac0cdd411c98688dc534c4
View file https://github.com/faster-cpython/cpython/blob/1d2650e980593b220c68175c4aeb8935a8ab5ac4/Lib/test/test_capi/test_long.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/101685/{{ revealButtonHref }}
Misc/NEWS.d/next/C API/2023-05-18-20-53-05.gh-issue-101291.ZBh9aR.rsthttps://github.com/python/cpython/pull/101685/files#diff-c1be5293496f68b148e6d198fa378406a7f846b2ce181d131a4822b025ef2922
View file https://github.com/faster-cpython/cpython/blob/1d2650e980593b220c68175c4aeb8935a8ab5ac4/Misc/NEWS.d/next/C%20API/2023-05-18-20-53-05.gh-issue-101291.ZBh9aR.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/101685/{{ revealButtonHref }}
Modules/_testcapi/long.chttps://github.com/python/cpython/pull/101685/files#diff-fb4adcb9ec0f5a40194fc9d5ef20b0f17600f316040899fea116db659718d141
View file https://github.com/faster-cpython/cpython/blob/1d2650e980593b220c68175c4aeb8935a8ab5ac4/Modules/_testcapi/long.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/101685/{{ revealButtonHref }}
https://github.com/python/cpython/pull/101685/files#diff-fb4adcb9ec0f5a40194fc9d5ef20b0f17600f316040899fea116db659718d141
https://github.com/python/cpython/pull/101685/files#diff-fb4adcb9ec0f5a40194fc9d5ef20b0f17600f316040899fea116db659718d141
https://github.com/python/cpython/pull/101685/files#diff-fb4adcb9ec0f5a40194fc9d5ef20b0f17600f316040899fea116db659718d141
Objects/longobject.chttps://github.com/python/cpython/pull/101685/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a
View file https://github.com/faster-cpython/cpython/blob/1d2650e980593b220c68175c4aeb8935a8ab5ac4/Objects/longobject.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/101685/{{ revealButtonHref }}
https://github.com/python/cpython/pull/101685/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a
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.