| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:d37c4f2f-bb4a-91bb-f6e0-c36e8b7398f8 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9E36:13B2CF:6CAE59:924045:6A51D3BC |
| html-safe-nonce | 47fd8a666ccdb3c82a1c6060fdb7ed5195ef116c20844ba4a7fe960af8a1e389 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTM2OjEzQjJDRjo2Q0FFNTk6OTI0MDQ1OjZBNTFEM0JDIiwidmlzaXRvcl9pZCI6IjQ5OTE1OTkxNTE5NzAxMTI0NDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b4ee2393f19fe69cd09bc26d7d1d9126f264a5c09e5eb96a2b2dca03d682205d |
| hovercard-subject-tag | pull_request:3393759372 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/145901/files |
| twitter:image | https://avatars.githubusercontent.com/u/2155800?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/2155800?s=400&v=4 |
| og:image:alt | 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... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/145901/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F145901%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://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%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 |
| Reload | https://github.com/python/cpython/pull/145901/files |
| Reload | https://github.com/python/cpython/pull/145901/files |
| Reload | https://github.com/python/cpython/pull/145901/files |
| Please reload this page | https://github.com/python/cpython/pull/145901/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/145901/files |
|
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 |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| vstinner | https://github.com/vstinner |
| python:main | https://github.com/python/cpython/tree/main |
| skirpichev:fix-PyLong_FromString/143050 | https://github.com/skirpichev/cpython/tree/fix-PyLong_FromString/143050 |
|
Conversation
50
| https://github.com/python/cpython/pull/145901 |
|
Commits
13
| https://github.com/python/cpython/pull/145901/commits |
|
Checks
53
| https://github.com/python/cpython/pull/145901/checks |
|
Files changed
| https://github.com/python/cpython/pull/145901/files |
| Please reload this page | https://github.com/python/cpython/pull/145901/files |
|
gh-143050: correct PyLong_FromString() to use _PyLong_Negate()
| https://github.com/python/cpython/pull/145901/files#top |
|
Show all changes
13 commits
| https://github.com/python/cpython/pull/145901/files |
|
fbcec5a
gh-143050: correct PyLong_FromString() to use _PyLong_Negate()
skirpichev Mar 13, 2026
| https://github.com/python/cpython/pull/145901/commits/fbcec5a7ffe7efdc5fce079e39cf638adc3586b5 |
|
b8333ba
cleanup, use _testcapi.test_immortal_small_ints()
skirpichev Mar 13, 2026
| https://github.com/python/cpython/pull/145901/commits/b8333ba67da4773f79e668495b7352ed2650c41b |
|
20e79c6
+ add also test with nonzero small int
skirpichev Mar 14, 2026
| https://github.com/python/cpython/pull/145901/commits/20e79c6c3cc5c8a152d2962e98220e30e68ce2dd |
|
413e56d
_long_is_small_int() -> _PyLong_IsImmortal() helper
skirpichev Mar 14, 2026
| https://github.com/python/cpython/pull/145901/commits/413e56d52f3a0717f4abe2481287700759f1e250 |
|
b892216
Merge branch 'master' into fix-PyLong_FromString/143050
skirpichev Mar 17, 2026
| https://github.com/python/cpython/pull/145901/commits/b892216f640f307d3c3a16bcbfe51cceafcc5795 |
|
78c5b4b
address review: rename _PyLong_IsImmortal -> _PyLong_HasImmortalTag
skirpichev Mar 17, 2026
| https://github.com/python/cpython/pull/145901/commits/78c5b4be4012b0c69070463b3a2609f65bff34bd |
|
69d35bd
add assert
skirpichev Mar 18, 2026
| https://github.com/python/cpython/pull/145901/commits/69d35bda593a5f8aafec607c848d0dbfa81a56c1 |
|
2f927e0
address review: simplify assert
skirpichev Mar 18, 2026
| https://github.com/python/cpython/pull/145901/commits/2f927e0dc13c22bfe628438c3d6e581a5cd9d181 |
|
53523de
Merge branch 'master' into fix-PyLong_FromString/143050
skirpichev Mar 27, 2026
| https://github.com/python/cpython/pull/145901/commits/53523deb383c9b972799496785985284a61dea83 |
|
1f363f4
address review: some comments
skirpichev Mar 28, 2026
| https://github.com/python/cpython/pull/145901/commits/1f363f41256562347be497789450d74af071a67a |
|
41961ed
Merge branch 'main' into fix-PyLong_FromString/143050
skirpichev Mar 30, 2026
| https://github.com/python/cpython/pull/145901/commits/41961ed4553d4827f18a6f0396ab4dcde7f9ad87 |
|
0b29e28
address review: add assert on _PY_IS_SMALL_INT
skirpichev Mar 30, 2026
| https://github.com/python/cpython/pull/145901/commits/0b29e28567f5afae1f39743268034e815232ea1a |
|
45b3b04
Rename to _PyLong_IsSmallInt()
vstinner Mar 31, 2026
| https://github.com/python/cpython/pull/145901/commits/45b3b040da09b93a42a32e71f08de5670f8d79d6 |
|
Clear filters
| https://github.com/python/cpython/pull/145901/files |
| Please reload this page | https://github.com/python/cpython/pull/145901/files |
| Please reload this page | https://github.com/python/cpython/pull/145901/files |
|
pycore_long.h
| https://github.com/python/cpython/pull/145901/files#diff-0817b8ffc6c3af36ea39ebabafe70c849d6ee7cb6621d3bda857f3ed25a37511 |
|
test_long.py
| https://github.com/python/cpython/pull/145901/files#diff-cc3c55fb42d8833c85cfb69e864008af59140bcf80ac0cdd411c98688dc534c4 |
|
immortal.c
| https://github.com/python/cpython/pull/145901/files#diff-4475403bbe82b492e8ef54bc096287b1e4774931d4bfe50a196ab396d086edcd |
|
longobject.c
| https://github.com/python/cpython/pull/145901/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
| Include/internal/pycore_long.h | https://github.com/python/cpython/pull/145901/files#diff-0817b8ffc6c3af36ea39ebabafe70c849d6ee7cb6621d3bda857f3ed25a37511 |
|
View file
| https://github.com/skirpichev/cpython/blob/45b3b040da09b93a42a32e71f08de5670f8d79d6/Include/internal/pycore_long.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/145901/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/145901/files#diff-0817b8ffc6c3af36ea39ebabafe70c849d6ee7cb6621d3bda857f3ed25a37511 |
| Please reload this page | https://github.com/python/cpython/pull/145901/files |
|
| https://github.com/python/cpython/pull/145901/files#diff-0817b8ffc6c3af36ea39ebabafe70c849d6ee7cb6621d3bda857f3ed25a37511 |
|
| https://github.com/python/cpython/pull/145901/files#diff-0817b8ffc6c3af36ea39ebabafe70c849d6ee7cb6621d3bda857f3ed25a37511 |
|
| https://github.com/python/cpython/pull/145901/files#diff-0817b8ffc6c3af36ea39ebabafe70c849d6ee7cb6621d3bda857f3ed25a37511 |
| Lib/test/test_capi/test_long.py | https://github.com/python/cpython/pull/145901/files#diff-cc3c55fb42d8833c85cfb69e864008af59140bcf80ac0cdd411c98688dc534c4 |
|
View file
| https://github.com/skirpichev/cpython/blob/45b3b040da09b93a42a32e71f08de5670f8d79d6/Lib/test/test_capi/test_long.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/145901/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/145901/files#diff-cc3c55fb42d8833c85cfb69e864008af59140bcf80ac0cdd411c98688dc534c4 |
| Please reload this page | https://github.com/python/cpython/pull/145901/files |
| Please reload this page | https://github.com/python/cpython/pull/145901/files |
| skirpichev | https://github.com/skirpichev |
| Mar 13, 2026 | https://github.com/python/cpython/pull/145901/files#r2930299248 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| @corona10 | https://github.com/corona10 |
| #103962 | https://github.com/python/cpython/pull/103962 |
| Please reload this page | https://github.com/python/cpython/pull/145901/files |
| colesbury | https://github.com/colesbury |
| Mar 17, 2026 | https://github.com/python/cpython/pull/145901/files#r2949272105 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/145901/files |
| vstinner | https://github.com/vstinner |
| Mar 31, 2026 | https://github.com/python/cpython/pull/145901/files#r3015523598 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/145901/files |
| vstinner | https://github.com/vstinner |
| Mar 31, 2026 | https://github.com/python/cpython/pull/145901/files#r3015577333 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/145901/files |
| Modules/_testcapi/immortal.c | https://github.com/python/cpython/pull/145901/files#diff-4475403bbe82b492e8ef54bc096287b1e4774931d4bfe50a196ab396d086edcd |
|
View file
| https://github.com/skirpichev/cpython/blob/45b3b040da09b93a42a32e71f08de5670f8d79d6/Modules/_testcapi/immortal.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/145901/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/145901/files#diff-4475403bbe82b492e8ef54bc096287b1e4774931d4bfe50a196ab396d086edcd |
|
| https://github.com/python/cpython/pull/145901/files#diff-4475403bbe82b492e8ef54bc096287b1e4774931d4bfe50a196ab396d086edcd |
| Objects/longobject.c | https://github.com/python/cpython/pull/145901/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
View file
| https://github.com/skirpichev/cpython/blob/45b3b040da09b93a42a32e71f08de5670f8d79d6/Objects/longobject.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/145901/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/145901/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
| Please reload this page | https://github.com/python/cpython/pull/145901/files |
|
| https://github.com/python/cpython/pull/145901/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
| https://github.com/python/cpython/pull/145901/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
| https://github.com/python/cpython/pull/145901/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
| https://github.com/python/cpython/pull/145901/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
| Please reload this page | https://github.com/python/cpython/pull/145901/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |