| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:6a8609dc-8b26-c6db-9fd0-69a5e20903f0 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C51E:DC558:A85044:DF91C2:69699348 |
| html-safe-nonce | 7e7ef34c0a916899b4932ebf8995c9cb982b12b4070aecd73e90bff9bde40802 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTFFOkRDNTU4OkE4NTA0NDpERjkxQzI6Njk2OTkzNDgiLCJ2aXNpdG9yX2lkIjoiMzQzNTQ1MjMxMzU3NDY3NTI3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fcd6771fa860ccb050ce0497a30a0c04235aff5d820121b4bdcce66b1f037512 |
| hovercard-subject-tag | pull_request:1236356253 |
| 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/101780/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 | removed private _normalize argument of the Fraction constructor
added _from_coprime_ints() helper to make fractions from a pair of coprime ints
Issue: gh-101773 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751 |
| 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 | af80af7cc9e3de9c336f18b208a600950a3c187c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/101780/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F101780%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| 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 |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| 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/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%2F101780%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/101780/files |
| Reload | https://github.com/python/cpython/pull/101780/files |
| Reload | https://github.com/python/cpython/pull/101780/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/101780/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 page | https://github.com/python/cpython/pull/101780/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 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 |
| mdickinson | https://github.com/mdickinson |
| python:main | https://github.com/python/cpython/tree/main |
| skirpichev:opt-fractions-new | https://github.com/skirpichev/cpython/tree/opt-fractions-new |
|
Conversation
32
| https://github.com/python/cpython/pull/101780 |
|
Commits
13
| https://github.com/python/cpython/pull/101780/commits |
|
Checks
0
| https://github.com/python/cpython/pull/101780/checks |
|
Files changed
| https://github.com/python/cpython/pull/101780/files |
| Please reload this page | https://github.com/python/cpython/pull/101780/files |
|
gh-101773: Optimize creation of Fractions in private methods
| https://github.com/python/cpython/pull/101780/files#top |
|
Show all changes
13 commits
| https://github.com/python/cpython/pull/101780/files |
|
9cc62f7
gh-101773: Optimize creation of Fraction's in private methods
skirpichev Feb 10, 2023
| https://github.com/python/cpython/pull/101780/commits/9cc62f7c849f4e0d60efb71f8eec6bd4933ec1d7 |
|
836d3a6
Merge branch 'main' into opt-fractions-new
skirpichev Feb 10, 2023
| https://github.com/python/cpython/pull/101780/commits/836d3a63a53e48febfc41b3be86b3fbe69ae33c0 |
|
3625d34
Adjust signature of _from_pair() and add docstring
skirpichev Feb 11, 2023
| https://github.com/python/cpython/pull/101780/commits/3625d34155b4d6d8665c665a85ccd701af47d336 |
|
9e66b5a
Use new helper in from_float/Decimal
skirpichev Feb 11, 2023
| https://github.com/python/cpython/pull/101780/commits/9e66b5a1c11ba432518acc23b17a7cf447870989 |
|
4324391
Restore back _normalize kwarg for the Fraction.__new__()
skirpichev Feb 11, 2023
| https://github.com/python/cpython/pull/101780/commits/43243910dc37b3dbdcf2bfe776eb0689028565be |
|
b0dca38
Amend 3625d34155
skirpichev Feb 11, 2023
| https://github.com/python/cpython/pull/101780/commits/b0dca38aa3e0af061127bac6a1225cb05eaadfa4 |
|
3a8506d
Nitpick on docstring (int's -> ints)
skirpichev Feb 27, 2023
| https://github.com/python/cpython/pull/101780/commits/3a8506dc2b5962600fbe140956b03c495910e41c |
|
13262af
Revert "Restore back _normalize kwarg for the Fraction.__new__()"
skirpichev Feb 27, 2023
| https://github.com/python/cpython/pull/101780/commits/13262af7b792160a5ffec326c7be140afe1dbb40 |
|
4e8977a
Rename: _from_pair -> _from_coprime_ints
skirpichev Feb 27, 2023
| https://github.com/python/cpython/pull/101780/commits/4e8977af55780ef517d8600719caaf6c2e0d23d9 |
|
57ac373
Merge branch 'main' into opt-fractions-new
skirpichev Feb 27, 2023
| https://github.com/python/cpython/pull/101780/commits/57ac3737212c1f34c592682002325fdf4c45c395 |
|
4b4a386
Update Misc/NEWS.d/next/Library/2023-02-10-11-59-13.gh-issue-101773.J…
skirpichev Feb 27, 2023
| https://github.com/python/cpython/pull/101780/commits/4b4a386bbd8f69bc08d26433315eacbcd7094f52 |
|
580b1be
+1
skirpichev Feb 27, 2023
| https://github.com/python/cpython/pull/101780/commits/580b1be3bb5126ec729badbaf6fc662e45f4fff2 |
|
53d5e94
Tweak docstring wording
mdickinson Feb 27, 2023
| https://github.com/python/cpython/pull/101780/commits/53d5e9407f0588bc2e12f3b919e66a49985be9b9 |
|
Clear filters
| https://github.com/python/cpython/pull/101780/files |
| Please reload this page | https://github.com/python/cpython/pull/101780/files |
| Please reload this page | https://github.com/python/cpython/pull/101780/files |
|
fractions.py
| https://github.com/python/cpython/pull/101780/files#diff-f561eb7eb97f832b2698837f52c2c2cf23bdb0b31c69cf1f6aaa560280993316 |
|
test_fractions.py
| https://github.com/python/cpython/pull/101780/files#diff-39381000227588e760871a319e6b5f8e88fc03643b03a94acd2e94b942135e9b |
|
test_numeric_tower.py
| https://github.com/python/cpython/pull/101780/files#diff-3d82677eb5ce8d720baada7986cb0acb56b4825beea3b3385bc51b19b6873419 |
|
2023-02-10-11-59-13.gh-issue-101773.J_kI7y.rst
| https://github.com/python/cpython/pull/101780/files#diff-8cfce9eb6db16756eb65eecd9053454077ec471edbc621b5ace62798b409f6b2 |
| Lib/fractions.py | https://github.com/python/cpython/pull/101780/files#diff-f561eb7eb97f832b2698837f52c2c2cf23bdb0b31c69cf1f6aaa560280993316 |
|
View file
| https://github.com/skirpichev/cpython/blob/53d5e9407f0588bc2e12f3b919e66a49985be9b9/Lib/fractions.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/101780/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/101780/files#diff-f561eb7eb97f832b2698837f52c2c2cf23bdb0b31c69cf1f6aaa560280993316 |
| Please reload this page | https://github.com/python/cpython/pull/101780/files |
|
| https://github.com/python/cpython/pull/101780/files#diff-f561eb7eb97f832b2698837f52c2c2cf23bdb0b31c69cf1f6aaa560280993316 |
|
| https://github.com/python/cpython/pull/101780/files#diff-f561eb7eb97f832b2698837f52c2c2cf23bdb0b31c69cf1f6aaa560280993316 |
|
| https://github.com/python/cpython/pull/101780/files#diff-f561eb7eb97f832b2698837f52c2c2cf23bdb0b31c69cf1f6aaa560280993316 |
|
| https://github.com/python/cpython/pull/101780/files#diff-f561eb7eb97f832b2698837f52c2c2cf23bdb0b31c69cf1f6aaa560280993316 |
|
| https://github.com/python/cpython/pull/101780/files#diff-f561eb7eb97f832b2698837f52c2c2cf23bdb0b31c69cf1f6aaa560280993316 |
|
| https://github.com/python/cpython/pull/101780/files#diff-f561eb7eb97f832b2698837f52c2c2cf23bdb0b31c69cf1f6aaa560280993316 |
|
| https://github.com/python/cpython/pull/101780/files#diff-f561eb7eb97f832b2698837f52c2c2cf23bdb0b31c69cf1f6aaa560280993316 |
|
| https://github.com/python/cpython/pull/101780/files#diff-f561eb7eb97f832b2698837f52c2c2cf23bdb0b31c69cf1f6aaa560280993316 |
|
| https://github.com/python/cpython/pull/101780/files#diff-f561eb7eb97f832b2698837f52c2c2cf23bdb0b31c69cf1f6aaa560280993316 |
|
| https://github.com/python/cpython/pull/101780/files#diff-f561eb7eb97f832b2698837f52c2c2cf23bdb0b31c69cf1f6aaa560280993316 |
| Please reload this page | https://github.com/python/cpython/pull/101780/files |
|
| https://github.com/python/cpython/pull/101780/files#diff-f561eb7eb97f832b2698837f52c2c2cf23bdb0b31c69cf1f6aaa560280993316 |
|
| https://github.com/python/cpython/pull/101780/files#diff-f561eb7eb97f832b2698837f52c2c2cf23bdb0b31c69cf1f6aaa560280993316 |
|
| https://github.com/python/cpython/pull/101780/files#diff-f561eb7eb97f832b2698837f52c2c2cf23bdb0b31c69cf1f6aaa560280993316 |
| Please reload this page | https://github.com/python/cpython/pull/101780/files |
|
| https://github.com/python/cpython/pull/101780/files#diff-f561eb7eb97f832b2698837f52c2c2cf23bdb0b31c69cf1f6aaa560280993316 |
|
| https://github.com/python/cpython/pull/101780/files#diff-f561eb7eb97f832b2698837f52c2c2cf23bdb0b31c69cf1f6aaa560280993316 |
| Lib/test/test_fractions.py | https://github.com/python/cpython/pull/101780/files#diff-39381000227588e760871a319e6b5f8e88fc03643b03a94acd2e94b942135e9b |
|
View file
| https://github.com/skirpichev/cpython/blob/53d5e9407f0588bc2e12f3b919e66a49985be9b9/Lib/test/test_fractions.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/101780/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/101780/files#diff-39381000227588e760871a319e6b5f8e88fc03643b03a94acd2e94b942135e9b |
|
| https://github.com/python/cpython/pull/101780/files#diff-39381000227588e760871a319e6b5f8e88fc03643b03a94acd2e94b942135e9b |
| Lib/test/test_numeric_tower.py | https://github.com/python/cpython/pull/101780/files#diff-3d82677eb5ce8d720baada7986cb0acb56b4825beea3b3385bc51b19b6873419 |
|
View file
| https://github.com/skirpichev/cpython/blob/53d5e9407f0588bc2e12f3b919e66a49985be9b9/Lib/test/test_numeric_tower.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/101780/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/101780/files#diff-3d82677eb5ce8d720baada7986cb0acb56b4825beea3b3385bc51b19b6873419 |
|
| https://github.com/python/cpython/pull/101780/files#diff-3d82677eb5ce8d720baada7986cb0acb56b4825beea3b3385bc51b19b6873419 |
| Misc/NEWS.d/next/Library/2023-02-10-11-59-13.gh-issue-101773.J_kI7y.rst | https://github.com/python/cpython/pull/101780/files#diff-8cfce9eb6db16756eb65eecd9053454077ec471edbc621b5ace62798b409f6b2 |
|
View file
| https://github.com/skirpichev/cpython/blob/53d5e9407f0588bc2e12f3b919e66a49985be9b9/Misc/NEWS.d/next/Library/2023-02-10-11-59-13.gh-issue-101773.J_kI7y.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/101780/{{ revealButtonHref }} |
|
| 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 |