René's URL Explorer Experiment


Title: gh-143050: correct PyLong_FromString() to use _PyLong_Negate() by skirpichev · Pull Request #145901 · python/cpython · GitHub

Open Graph Title: gh-143050: correct PyLong_FromString() to use _PyLong_Negate() by skirpichev · Pull Request #145901 · python/cpython

X Title: gh-143050: correct PyLong_FromString() to use _PyLong_Negate() by skirpichev · Pull Request #145901 · python/cpython

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

Open Graph Description: The long_from_string_base() might return a small integer, when the _pylong.py is used to do conversion. Hence, we must be careful here to not smash it "small int" bit by using the _PyLon...

X Description: The long_from_string_base() might return a small integer, when the _pylong.py is used to do conversion. Hence, we must be careful here to not smash it "small int" bit by using th...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:8e6bbd2f-2c93-81c8-09d7-85fad6a39edc
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id94EA:130837:FC8121:157109F:6A520A85
html-safe-noncef4487caee77f8f2645f4c26baae987933bcbf9a66411fda00ffa4d43a7524d7c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NEVBOjEzMDgzNzpGQzgxMjE6MTU3MTA5Rjo2QTUyMEE4NSIsInZpc2l0b3JfaWQiOiI3NjA0ODE1NzM5MTQ5NzQ4ODY5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac6ce017422c9aed9e3b9733bdcb73be081b3b8133852314acd05bc32ed3af027e
hovercard-subject-tagpull_request:3393759372
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/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/145901/commits
twitter:imagehttps://opengraph.githubassets.com/ab7d18ea00e5efea5af83b5b30a9290be2ae8634e3e5020f6ff2ed7c8a857b94/python/cpython/pull/145901
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ab7d18ea00e5efea5af83b5b30a9290be2ae8634e3e5020f6ff2ed7c8a857b94/python/cpython/pull/145901
og:image:altThe long_from_string_base() might return a small integer, when the _pylong.py is used to do conversion. Hence, we must be careful here to not smash it "small int" bit by using the _PyLon...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameskirpichev
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
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
release7aed05249554b889eb33d002851a973eebcc7e91
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/145901/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F145901%2Fcommits
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%2Fpull%2F145901%2Fcommits
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%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/145901/commits
Reloadhttps://github.com/python/cpython/pull/145901/commits
Reloadhttps://github.com/python/cpython/pull/145901/commits
Please reload this pagehttps://github.com/python/cpython/pull/145901/commits
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/145901/commits
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.7k 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
vstinnerhttps://github.com/vstinner
python:mainhttps://github.com/python/cpython/tree/main
skirpichev:fix-PyLong_FromString/143050https://github.com/skirpichev/cpython/tree/fix-PyLong_FromString/143050
Conversationhttps://github.com/python/cpython/pull/145901
Commits13 (13)https://github.com/python/cpython/pull/145901/commits
Checkshttps://github.com/python/cpython/pull/145901/checks
Files changedhttps://github.com/python/cpython/pull/145901/files
gh-143050: correct PyLong_FromString() to use _PyLong_Negate()https://github.com/python/cpython/pull/145901/commits#top
vstinnerhttps://github.com/vstinner
python:mainhttps://github.com/python/cpython/tree/main
skirpichev:fix-PyLong_FromString/143050https://github.com/skirpichev/cpython/tree/fix-PyLong_FromString/143050
gh-143050: correct PyLong_FromString() to use _PyLong_Negate()https://github.com/python/cpython/pull/145901/commits/fbcec5a7ffe7efdc5fce079e39cf638adc3586b5
https://github.com/skirpichev
skirpichevhttps://github.com/python/cpython/commits?author=skirpichev
fbcec5ahttps://github.com/python/cpython/pull/145901/commits/fbcec5a7ffe7efdc5fce079e39cf638adc3586b5
https://github.com/python/cpython/tree/fbcec5a7ffe7efdc5fce079e39cf638adc3586b5
cleanup, use _testcapi.test_immortal_small_ints()https://github.com/python/cpython/pull/145901/commits/b8333ba67da4773f79e668495b7352ed2650c41b
https://github.com/skirpichev
skirpichevhttps://github.com/python/cpython/commits?author=skirpichev
b8333bahttps://github.com/python/cpython/pull/145901/commits/b8333ba67da4773f79e668495b7352ed2650c41b
https://github.com/python/cpython/tree/b8333ba67da4773f79e668495b7352ed2650c41b
+ add also test with nonzero small inthttps://github.com/python/cpython/pull/145901/commits/20e79c6c3cc5c8a152d2962e98220e30e68ce2dd
https://github.com/skirpichev
skirpichevhttps://github.com/python/cpython/commits?author=skirpichev
20e79c6https://github.com/python/cpython/pull/145901/commits/20e79c6c3cc5c8a152d2962e98220e30e68ce2dd
https://github.com/python/cpython/tree/20e79c6c3cc5c8a152d2962e98220e30e68ce2dd
_long_is_small_int() -> _PyLong_IsImmortal() helperhttps://github.com/python/cpython/pull/145901/commits/413e56d52f3a0717f4abe2481287700759f1e250
https://github.com/skirpichev
skirpichevhttps://github.com/python/cpython/commits?author=skirpichev
413e56dhttps://github.com/python/cpython/pull/145901/commits/413e56d52f3a0717f4abe2481287700759f1e250
https://github.com/python/cpython/tree/413e56d52f3a0717f4abe2481287700759f1e250
Merge branch 'master' into fix-PyLong_FromString/143050https://github.com/python/cpython/pull/145901/commits/b892216f640f307d3c3a16bcbfe51cceafcc5795
https://github.com/skirpichev
skirpichevhttps://github.com/python/cpython/commits?author=skirpichev
b892216https://github.com/python/cpython/pull/145901/commits/b892216f640f307d3c3a16bcbfe51cceafcc5795
https://github.com/python/cpython/tree/b892216f640f307d3c3a16bcbfe51cceafcc5795
address review: rename _PyLong_IsImmortal -> _PyLong_HasImmortalTaghttps://github.com/python/cpython/pull/145901/commits/78c5b4be4012b0c69070463b3a2609f65bff34bd
https://github.com/skirpichev
skirpichevhttps://github.com/python/cpython/commits?author=skirpichev
78c5b4bhttps://github.com/python/cpython/pull/145901/commits/78c5b4be4012b0c69070463b3a2609f65bff34bd
https://github.com/python/cpython/tree/78c5b4be4012b0c69070463b3a2609f65bff34bd
add asserthttps://github.com/python/cpython/pull/145901/commits/69d35bda593a5f8aafec607c848d0dbfa81a56c1
https://github.com/skirpichev
skirpichevhttps://github.com/python/cpython/commits?author=skirpichev
69d35bdhttps://github.com/python/cpython/pull/145901/commits/69d35bda593a5f8aafec607c848d0dbfa81a56c1
https://github.com/python/cpython/tree/69d35bda593a5f8aafec607c848d0dbfa81a56c1
address review: simplify asserthttps://github.com/python/cpython/pull/145901/commits/2f927e0dc13c22bfe628438c3d6e581a5cd9d181
https://github.com/skirpichev
skirpichevhttps://github.com/python/cpython/commits?author=skirpichev
2f927e0https://github.com/python/cpython/pull/145901/commits/2f927e0dc13c22bfe628438c3d6e581a5cd9d181
https://github.com/python/cpython/tree/2f927e0dc13c22bfe628438c3d6e581a5cd9d181
Merge branch 'master' into fix-PyLong_FromString/143050https://github.com/python/cpython/pull/145901/commits/53523deb383c9b972799496785985284a61dea83
https://github.com/skirpichev
skirpichevhttps://github.com/python/cpython/commits?author=skirpichev
53523dehttps://github.com/python/cpython/pull/145901/commits/53523deb383c9b972799496785985284a61dea83
https://github.com/python/cpython/tree/53523deb383c9b972799496785985284a61dea83
address review: some commentshttps://github.com/python/cpython/pull/145901/commits/1f363f41256562347be497789450d74af071a67a
https://github.com/skirpichev
skirpichevhttps://github.com/python/cpython/commits?author=skirpichev
1f363f4https://github.com/python/cpython/pull/145901/commits/1f363f41256562347be497789450d74af071a67a
https://github.com/python/cpython/tree/1f363f41256562347be497789450d74af071a67a
Merge branch 'main' into fix-PyLong_FromString/143050https://github.com/python/cpython/pull/145901/commits/41961ed4553d4827f18a6f0396ab4dcde7f9ad87
https://github.com/skirpichev
skirpichevhttps://github.com/python/cpython/commits?author=skirpichev
41961edhttps://github.com/python/cpython/pull/145901/commits/41961ed4553d4827f18a6f0396ab4dcde7f9ad87
https://github.com/python/cpython/tree/41961ed4553d4827f18a6f0396ab4dcde7f9ad87
address review: add assert on _PY_IS_SMALL_INThttps://github.com/python/cpython/pull/145901/commits/0b29e28567f5afae1f39743268034e815232ea1a
https://github.com/skirpichev
skirpichevhttps://github.com/python/cpython/commits?author=skirpichev
0b29e28https://github.com/python/cpython/pull/145901/commits/0b29e28567f5afae1f39743268034e815232ea1a
https://github.com/python/cpython/tree/0b29e28567f5afae1f39743268034e815232ea1a
Rename to _PyLong_IsSmallInt()https://github.com/python/cpython/pull/145901/commits/45b3b040da09b93a42a32e71f08de5670f8d79d6
vstinnerhttps://github.com/python/cpython/commits?author=vstinner
skirpichevhttps://github.com/python/cpython/commits?author=skirpichev
45b3b04https://github.com/python/cpython/pull/145901/commits/45b3b040da09b93a42a32e71f08de5670f8d79d6
https://github.com/python/cpython/tree/45b3b040da09b93a42a32e71f08de5670f8d79d6
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.