| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:b496fd03-67a2-e4a5-bb2d-b65eefc4b1ef |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9FEA:623C0:43F1C3:5ED495:6A586DA0 |
| html-safe-nonce | fe6fcba38289db080b5252429e89d7e3ca9f5946221a65f62e5855043ad36ac5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RkVBOjYyM0MwOjQzRjFDMzo1RUQ0OTU6NkE1ODZEQTAiLCJ2aXNpdG9yX2lkIjoiNzA1NTI4Mjc2MTA1MDM4NTgyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 272f0776d4c8897beff8593e581b0d20911338cb4e363e7220a74dd0d82c23f2 |
| hovercard-subject-tag | pull_request:2910349204 |
| 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/140044/files |
| twitter:image | https://avatars.githubusercontent.com/u/10796600?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/10796600?s=400&v=4 |
| og:image:alt | For now, we'll only fix this code path and we'll need to discuss a bit more for the other @mdickinson reported (#140036 (comment)).
Issue: gh-140036 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| 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 | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/140044/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F140044%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%2F140044%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/140044/files |
| Reload | https://github.com/python/cpython/pull/140044/files |
| Reload | https://github.com/python/cpython/pull/140044/files |
| Please reload this page | https://github.com/python/cpython/pull/140044/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/140044/files |
|
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 |
| 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 |
| picnixz | https://github.com/picnixz |
| python:main | https://github.com/python/cpython/tree/main |
| picnixz:fix/decimal/infinite-prec-140036 | https://github.com/picnixz/cpython/tree/fix/decimal/infinite-prec-140036 |
|
Conversation
32
| https://github.com/python/cpython/pull/140044 |
|
Commits
10
| https://github.com/python/cpython/pull/140044/commits |
|
Checks
42
| https://github.com/python/cpython/pull/140044/checks |
|
Files changed
| https://github.com/python/cpython/pull/140044/files |
| Please reload this page | https://github.com/python/cpython/pull/140044/files |
|
gh-140036: _pydecimal: avoid slow exponentiation in floor division
| https://github.com/python/cpython/pull/140044/files#top |
|
Show all changes
10 commits
| https://github.com/python/cpython/pull/140044/files |
|
ee617bd
_pydecimal: avoid slow exponentiation in floor division
picnixz Oct 13, 2025
| https://github.com/python/cpython/pull/140044/commits/ee617bdf035443d18fcde0abae2a0cb167415d39 |
|
329c31a
refine `q < 10**context.prec` checks
picnixz Oct 14, 2025
| https://github.com/python/cpython/pull/140044/commits/329c31a7609ec67ec7860cb571843aa2cef9f72c |
|
103fe1e
_pydecimal: add helpers for computing len(str(q)) < a
picnixz Oct 26, 2025
| https://github.com/python/cpython/pull/140044/commits/103fe1e0a6c92d860ea63fa05c3f220b39cba86b |
|
efbdc0a
_pydecimal: use helpers for computing len(str(q)) < a
picnixz Oct 26, 2025
| https://github.com/python/cpython/pull/140044/commits/efbdc0a788567807eaa945f705c67967c460a43b |
|
9377ab6
_pydecimal: add tests for unbounded contexts
picnixz Oct 26, 2025
| https://github.com/python/cpython/pull/140044/commits/9377ab6240bcc07e97ee122b1a35370a25cc1709 |
|
23494fb
Apply suggestions from code review
picnixz Nov 7, 2025
| https://github.com/python/cpython/pull/140044/commits/23494fb540bcda70e720af71615adedd7c2844c3 |
|
6b55711
address review
picnixz Nov 9, 2025
| https://github.com/python/cpython/pull/140044/commits/6b55711a08cec60925cf208fb12742e6ac31fd62 |
|
49d5b0d
reformulate comment
picnixz Nov 9, 2025
| https://github.com/python/cpython/pull/140044/commits/49d5b0d98da7c033842db01ce4c233cd5455282d |
|
ea3e499
Update Lib/_pydecimal.py
picnixz Nov 9, 2025
| https://github.com/python/cpython/pull/140044/commits/ea3e49945bf59b6b5ad20b8ff7d0e79cd1140642 |
|
b1c24b7
add test for _is_less_than_pow10a_use_str() slow path
picnixz Nov 9, 2025
| https://github.com/python/cpython/pull/140044/commits/b1c24b7e0778e1576b4374082e30e612d9b27ea0 |
|
Clear filters
| https://github.com/python/cpython/pull/140044/files |
| Please reload this page | https://github.com/python/cpython/pull/140044/files |
| Please reload this page | https://github.com/python/cpython/pull/140044/files |
|
_pydecimal.py
| https://github.com/python/cpython/pull/140044/files#diff-fad420a37a1acebb2eb47f65bf3bd7e6aedc561cc51141bd3663c0e397d41c50 |
|
test_decimal.py
| https://github.com/python/cpython/pull/140044/files#diff-0bf3efdde952043078e322013c2459632397c6a9b312d49e70ae4a9791e2a1d8 |
|
2025-10-13-15-43-09.gh-issue-140036.b_59uN.rst
| https://github.com/python/cpython/pull/140044/files#diff-e617067ef1aad91909b4f72f917341fbe7c66e0b2e05ab10045f2e2a72fea47f |
| Lib/_pydecimal.py | https://github.com/python/cpython/pull/140044/files#diff-fad420a37a1acebb2eb47f65bf3bd7e6aedc561cc51141bd3663c0e397d41c50 |
|
View file
| https://github.com/python/cpython/blob/b1c24b7e0778e1576b4374082e30e612d9b27ea0/Lib/_pydecimal.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/140044/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/140044/files#diff-fad420a37a1acebb2eb47f65bf3bd7e6aedc561cc51141bd3663c0e397d41c50 |
|
| https://github.com/python/cpython/pull/140044/files#diff-fad420a37a1acebb2eb47f65bf3bd7e6aedc561cc51141bd3663c0e397d41c50 |
|
| https://github.com/python/cpython/pull/140044/files#diff-fad420a37a1acebb2eb47f65bf3bd7e6aedc561cc51141bd3663c0e397d41c50 |
|
| https://github.com/python/cpython/pull/140044/files#diff-fad420a37a1acebb2eb47f65bf3bd7e6aedc561cc51141bd3663c0e397d41c50 |
|
| https://github.com/python/cpython/pull/140044/files#diff-fad420a37a1acebb2eb47f65bf3bd7e6aedc561cc51141bd3663c0e397d41c50 |
|
| https://github.com/python/cpython/pull/140044/files#diff-fad420a37a1acebb2eb47f65bf3bd7e6aedc561cc51141bd3663c0e397d41c50 |
| Lib/test/test_decimal.py | https://github.com/python/cpython/pull/140044/files#diff-0bf3efdde952043078e322013c2459632397c6a9b312d49e70ae4a9791e2a1d8 |
|
View file
| https://github.com/python/cpython/blob/b1c24b7e0778e1576b4374082e30e612d9b27ea0/Lib/test/test_decimal.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/140044/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/140044/files#diff-0bf3efdde952043078e322013c2459632397c6a9b312d49e70ae4a9791e2a1d8 |
|
| https://github.com/python/cpython/pull/140044/files#diff-0bf3efdde952043078e322013c2459632397c6a9b312d49e70ae4a9791e2a1d8 |
|
| https://github.com/python/cpython/pull/140044/files#diff-0bf3efdde952043078e322013c2459632397c6a9b312d49e70ae4a9791e2a1d8 |
|
| https://github.com/python/cpython/pull/140044/files#diff-0bf3efdde952043078e322013c2459632397c6a9b312d49e70ae4a9791e2a1d8 |
|
| https://github.com/python/cpython/pull/140044/files#diff-0bf3efdde952043078e322013c2459632397c6a9b312d49e70ae4a9791e2a1d8 |
|
| https://github.com/python/cpython/pull/140044/files#diff-0bf3efdde952043078e322013c2459632397c6a9b312d49e70ae4a9791e2a1d8 |
|
| https://github.com/python/cpython/pull/140044/files#diff-0bf3efdde952043078e322013c2459632397c6a9b312d49e70ae4a9791e2a1d8 |
| Please reload this page | https://github.com/python/cpython/pull/140044/files |
|
| https://github.com/python/cpython/pull/140044/files#diff-0bf3efdde952043078e322013c2459632397c6a9b312d49e70ae4a9791e2a1d8 |
| Misc/NEWS.d/next/Library/2025-10-13-15-43-09.gh-issue-140036.b_59uN.rst | https://github.com/python/cpython/pull/140044/files#diff-e617067ef1aad91909b4f72f917341fbe7c66e0b2e05ab10045f2e2a72fea47f |
|
View file
| https://github.com/python/cpython/blob/b1c24b7e0778e1576b4374082e30e612d9b27ea0/Misc/NEWS.d/next/Library/2025-10-13-15-43-09.gh-issue-140036.b_59uN.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/140044/{{ revealButtonHref }} |
| Please reload this page | https://github.com/python/cpython/pull/140044/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 |