René's URL Explorer Experiment


Title: gh-101773: Optimize creation of Fractions in private methods by skirpichev · Pull Request #101780 · python/cpython · GitHub

Open Graph Title: gh-101773: Optimize creation of Fractions in private methods by skirpichev · Pull Request #101780 · python/cpython

X Title: gh-101773: Optimize creation of Fractions in private methods by skirpichev · Pull Request #101780 · python/cpython

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

Open Graph Description: removed private _normalize argument of the Fraction constructor added _from_coprime_ints() helper to make fractions from a pair of coprime ints Issue: Optimize creation of unnormalized Fraction...

X Description: removed private _normalize argument of the Fraction constructor added _from_coprime_ints() helper to make fractions from a pair of coprime ints Issue: Optimize creation of unnormalized Fraction...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:b7ea574d-cf6b-d00f-d48d-63efec5fe396
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE306:1025CE:62CABF:84B259:6969B563
html-safe-nonceb2b3fb6468cdd6c4b4a5e470c62c12c86e9856134be77f0a9387a23adf168890
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzA2OjEwMjVDRTo2MkNBQkY6ODRCMjU5OjY5NjlCNTYzIiwidmlzaXRvcl9pZCI6IjE1NDU1NDgxNzUxMjIyMTYyOTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca3ebf504beab7630c53a009c157ad1b82c09a0616fed870b138d645083f2c08f
hovercard-subject-tagpull_request:1236356253
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/101780/commits
twitter:imagehttps://opengraph.githubassets.com/cc11e78312eebabfce2e42c669d8bfc968ba64f17a47a8c5c53b10c250f5a345/python/cpython/pull/101780
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cc11e78312eebabfce2e42c669d8bfc968ba64f17a47a8c5c53b10c250f5a345/python/cpython/pull/101780
og:image:altremoved private _normalize argument of the Fraction constructor added _from_coprime_ints() helper to make fractions from a pair of coprime ints Issue: Optimize creation of unnormalized Fraction...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameskirpichev
hostnamegithub.com
expected-hostnamegithub.com
Noneb23b8fcc855cd29bb04d6c94aafa62d336bf44eefa8229444eecc968cad03aee
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
release0672399d88424758731ec07fe24509e23bb17fb5
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/101780/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F101780%2Fcommits
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%2F101780%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/101780/commits
Reloadhttps://github.com/python/cpython/pull/101780/commits
Reloadhttps://github.com/python/cpython/pull/101780/commits
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/101780/commits
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/101780/commits
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
mdickinsonhttps://github.com/mdickinson
python:mainhttps://github.com/python/cpython/tree/main
skirpichev:opt-fractions-newhttps://github.com/skirpichev/cpython/tree/opt-fractions-new
Conversationhttps://github.com/python/cpython/pull/101780
Commits13 (13)https://github.com/python/cpython/pull/101780/commits
Checkshttps://github.com/python/cpython/pull/101780/checks
Files changedhttps://github.com/python/cpython/pull/101780/files
gh-101773: Optimize creation of Fractions in private methodshttps://github.com/python/cpython/pull/101780/commits#top
mdickinsonhttps://github.com/mdickinson
python:mainhttps://github.com/python/cpython/tree/main
skirpichev:opt-fractions-newhttps://github.com/skirpichev/cpython/tree/opt-fractions-new
gh-101773: Optimize creation of Fraction's in private methodshttps://github.com/python/cpython/pull/101780/commits/9cc62f7c849f4e0d60efb71f8eec6bd4933ec1d7
https://github.com/skirpichev
skirpichevhttps://github.com/python/cpython/commits?author=skirpichev
9cc62f7https://github.com/python/cpython/pull/101780/commits/9cc62f7c849f4e0d60efb71f8eec6bd4933ec1d7
https://github.com/python/cpython/tree/9cc62f7c849f4e0d60efb71f8eec6bd4933ec1d7
Merge branch 'main' into opt-fractions-newhttps://github.com/python/cpython/pull/101780/commits/836d3a63a53e48febfc41b3be86b3fbe69ae33c0
https://github.com/skirpichev
skirpichevhttps://github.com/python/cpython/commits?author=skirpichev
836d3a6https://github.com/python/cpython/pull/101780/commits/836d3a63a53e48febfc41b3be86b3fbe69ae33c0
https://github.com/python/cpython/tree/836d3a63a53e48febfc41b3be86b3fbe69ae33c0
Adjust signature of _from_pair() and add docstringhttps://github.com/python/cpython/pull/101780/commits/3625d34155b4d6d8665c665a85ccd701af47d336
https://github.com/skirpichev
skirpichevhttps://github.com/python/cpython/commits?author=skirpichev
3625d34https://github.com/python/cpython/pull/101780/commits/3625d34155b4d6d8665c665a85ccd701af47d336
https://github.com/python/cpython/tree/3625d34155b4d6d8665c665a85ccd701af47d336
Use new helper in from_float/Decimalhttps://github.com/python/cpython/pull/101780/commits/9e66b5a1c11ba432518acc23b17a7cf447870989
https://github.com/skirpichev
skirpichevhttps://github.com/python/cpython/commits?author=skirpichev
9e66b5ahttps://github.com/python/cpython/pull/101780/commits/9e66b5a1c11ba432518acc23b17a7cf447870989
https://github.com/python/cpython/tree/9e66b5a1c11ba432518acc23b17a7cf447870989
Restore back _normalize kwarg for the Fraction.__new__()https://github.com/python/cpython/pull/101780/commits/43243910dc37b3dbdcf2bfe776eb0689028565be
https://github.com/skirpichev
skirpichevhttps://github.com/python/cpython/commits?author=skirpichev
4324391https://github.com/python/cpython/pull/101780/commits/43243910dc37b3dbdcf2bfe776eb0689028565be
https://github.com/python/cpython/tree/43243910dc37b3dbdcf2bfe776eb0689028565be
Amend 3625d34155https://github.com/python/cpython/pull/101780/commits/b0dca38aa3e0af061127bac6a1225cb05eaadfa4
https://github.com/skirpichev
skirpichevhttps://github.com/python/cpython/commits?author=skirpichev
b0dca38https://github.com/python/cpython/pull/101780/commits/b0dca38aa3e0af061127bac6a1225cb05eaadfa4
https://github.com/python/cpython/tree/b0dca38aa3e0af061127bac6a1225cb05eaadfa4
Nitpick on docstring (int's -> ints)https://github.com/python/cpython/pull/101780/commits/3a8506dc2b5962600fbe140956b03c495910e41c
https://github.com/skirpichev
skirpichevhttps://github.com/python/cpython/commits?author=skirpichev
3a8506dhttps://github.com/python/cpython/pull/101780/commits/3a8506dc2b5962600fbe140956b03c495910e41c
https://github.com/python/cpython/tree/3a8506dc2b5962600fbe140956b03c495910e41c
Revert "Restore back _normalize kwarg for the Fraction.__new__()"https://github.com/python/cpython/pull/101780/commits/13262af7b792160a5ffec326c7be140afe1dbb40
https://github.com/skirpichev
skirpichevhttps://github.com/python/cpython/commits?author=skirpichev
13262afhttps://github.com/python/cpython/pull/101780/commits/13262af7b792160a5ffec326c7be140afe1dbb40
https://github.com/python/cpython/tree/13262af7b792160a5ffec326c7be140afe1dbb40
Rename: _from_pair -> _from_coprime_intshttps://github.com/python/cpython/pull/101780/commits/4e8977af55780ef517d8600719caaf6c2e0d23d9
https://github.com/skirpichev
skirpichevhttps://github.com/python/cpython/commits?author=skirpichev
4e8977ahttps://github.com/python/cpython/pull/101780/commits/4e8977af55780ef517d8600719caaf6c2e0d23d9
https://github.com/python/cpython/tree/4e8977af55780ef517d8600719caaf6c2e0d23d9
Merge branch 'main' into opt-fractions-newhttps://github.com/python/cpython/pull/101780/commits/57ac3737212c1f34c592682002325fdf4c45c395
https://github.com/skirpichev
skirpichevhttps://github.com/python/cpython/commits?author=skirpichev
57ac373https://github.com/python/cpython/pull/101780/commits/57ac3737212c1f34c592682002325fdf4c45c395
https://github.com/python/cpython/tree/57ac3737212c1f34c592682002325fdf4c45c395
Update Misc/NEWS.d/next/Library/2023-02-10-11-59-13.gh-issue-101773.J_kI7y.rsthttps://github.com/python/cpython/pull/101780/commits/4b4a386bbd8f69bc08d26433315eacbcd7094f52
skirpichevhttps://github.com/python/cpython/commits?author=skirpichev
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
4b4a386https://github.com/python/cpython/pull/101780/commits/4b4a386bbd8f69bc08d26433315eacbcd7094f52
https://github.com/python/cpython/tree/4b4a386bbd8f69bc08d26433315eacbcd7094f52
+1https://github.com/python/cpython/pull/101780/commits/580b1be3bb5126ec729badbaf6fc662e45f4fff2
https://github.com/skirpichev
skirpichevhttps://github.com/python/cpython/commits?author=skirpichev
580b1behttps://github.com/python/cpython/pull/101780/commits/580b1be3bb5126ec729badbaf6fc662e45f4fff2
https://github.com/python/cpython/tree/580b1be3bb5126ec729badbaf6fc662e45f4fff2
Tweak docstring wordinghttps://github.com/python/cpython/pull/101780/commits/53d5e9407f0588bc2e12f3b919e66a49985be9b9
https://github.com/mdickinson
mdickinsonhttps://github.com/python/cpython/commits?author=mdickinson
53d5e94https://github.com/python/cpython/pull/101780/commits/53d5e9407f0588bc2e12f3b919e66a49985be9b9
https://github.com/python/cpython/tree/53d5e9407f0588bc2e12f3b919e66a49985be9b9
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.