René's URL Explorer Experiment


Title: bpo-37884: Optimize Fraction() and statistics.mean() by serhiy-storchaka · Pull Request #15329 · python/cpython · GitHub

Open Graph Title: bpo-37884: Optimize Fraction() and statistics.mean() by serhiy-storchaka · Pull Request #15329 · python/cpython

X Title: bpo-37884: Optimize Fraction() and statistics.mean() by serhiy-storchaka · Pull Request #15329 · python/cpython

Description: https://bugs.python.org/issue37884

Open Graph Description: https://bugs.python.org/issue37884

X Description: https://bugs.python.org/issue37884

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

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:375b700d-bee4-1381-8b2f-fb011807e7a3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD45C:28AE23:12878A7:198AFFC:696A9C33
html-safe-nonceca6ff931b75f7a40833ac55ae075b73d4942f6e43df83abb4c73817193c3a28c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDVDOjI4QUUyMzoxMjg3OEE3OjE5OEFGRkM6Njk2QTlDMzMiLCJ2aXNpdG9yX2lkIjoiNzkyMjE1MDMzODM5NzM3OTYzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac73f49e3666b33b6ea5c1922c56b879db6b3ee19e864de415672dbfb6cd1674c9
hovercard-subject-tagpull_request:308459608
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/15329/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/e3a175180d56dbe2735c14de90215330632cfe1e6cc3348bcae10d7ad6096ccb/python/cpython/pull/15329
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e3a175180d56dbe2735c14de90215330632cfe1e6cc3348bcae10d7ad6096ccb/python/cpython/pull/15329
og:image:althttps://bugs.python.org/issue37884
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameserhiy-storchaka
hostnamegithub.com
expected-hostnamegithub.com
Nonec0d8175e41e0e55b9e984c935b24b808cabab919dd3174aa45dac3ef503ed1af
turbo-cache-controlno-preview
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
release99aab454e5ddc8df30805fb76c114c3008a15842
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/15329#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F15329
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%2F15329
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/15329
Reloadhttps://github.com/python/cpython/pull/15329
Reloadhttps://github.com/python/cpython/pull/15329
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/15329
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/15329
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 servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/15329#issue-comment-box
serhiy-storchakahttps://github.com/serhiy-storchaka
python:masterhttps://github.com/python/cpython/tree/master
serhiy-storchaka:math-as_integer_ratio2https://github.com/serhiy-storchaka/cpython/tree/math-as_integer_ratio2
bpo-37884: Optimize Fraction() and statistics.mean() https://github.com/python/cpython/pull/15329#top
serhiy-storchakahttps://github.com/serhiy-storchaka
python:masterhttps://github.com/python/cpython/tree/master
serhiy-storchaka:math-as_integer_ratio2https://github.com/serhiy-storchaka/cpython/tree/math-as_integer_ratio2
Conversation 20 https://github.com/python/cpython/pull/15329
Commits 5 https://github.com/python/cpython/pull/15329/commits
Checks 0 https://github.com/python/cpython/pull/15329/checks
Files changed https://github.com/python/cpython/pull/15329/files
Please reload this pagehttps://github.com/python/cpython/pull/15329
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Aug 19, 2019https://github.com/python/cpython/pull/15329#issue-482125310
Please reload this pagehttps://github.com/python/cpython/pull/15329
https://bugs.python.org/issue37884https://bugs.python.org/issue37884
Please reload this pagehttps://github.com/python/cpython/pull/15329
serhiy-storchakahttps://github.com/serhiy-storchaka
August 11, 2019 16:55https://github.com/python/cpython/pull/15329#commits-pushed-482b1f9
https://github.com/serhiy-storchaka
bpo-37822: Add math.as_integer_ratio().https://github.com/python/cpython/pull/15329/commits/482b1f983e466f2834c739c6247ff555f5b5cfeb
482b1f9https://github.com/python/cpython/pull/15329/commits/482b1f983e466f2834c739c6247ff555f5b5cfeb
https://github.com/serhiy-storchaka
Better TypeError message.https://github.com/python/cpython/pull/15329/commits/a587d7d890f137f196ea2de650d324889d5eac5d
a587d7dhttps://github.com/python/cpython/pull/15329/commits/a587d7d890f137f196ea2de650d324889d5eac5d
https://github.com/serhiy-storchaka
Merge branch 'master' into math-as_integer_ratiohttps://github.com/python/cpython/pull/15329/commits/55232b3afde20b2fca3c812ca24641a1a1b15fd5
55232b3https://github.com/python/cpython/pull/15329/commits/55232b3afde20b2fca3c812ca24641a1a1b15fd5
https://github.com/serhiy-storchaka
Make it a private helper math._as_integer_ratio().https://github.com/python/cpython/pull/15329/commits/e658d19083b3d5abfbbe536e3227e3781883e22a
e658d19https://github.com/python/cpython/pull/15329/commits/e658d19083b3d5abfbbe536e3227e3781883e22a
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
performance https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Aperformance
Aug 19, 2019https://github.com/python/cpython/pull/15329#event-2565168082
https://github.com/the-knights-who-say-ni
the-knights-who-say-nihttps://github.com/the-knights-who-say-ni
CLA signed https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20signed%22
Aug 19, 2019https://github.com/python/cpython/pull/15329#event-2565168143
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Aug 19, 2019https://github.com/python/cpython/pull/15329#event-2565168173
https://github.com/aeros
aeroshttps://github.com/aeros
Aug 19, 2019 https://github.com/python/cpython/pull/15329#pullrequestreview-276370993
View reviewed changes https://github.com/python/cpython/pull/15329/files/e658d19083b3d5abfbbe536e3227e3781883e22a
Lib/fractions.pyhttps://github.com/python/cpython/pull/15329/files/e658d19083b3d5abfbbe536e3227e3781883e22a#diff-f561eb7eb97f832b2698837f52c2c2cf23bdb0b31c69cf1f6aaa560280993316
aeroshttps://github.com/aeros
Aug 19, 2019https://github.com/python/cpython/pull/15329#discussion_r315062197
Please reload this pagehttps://github.com/python/cpython/pull/15329
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://docs.python.org/3.9/library/stdtypes.html#numeric-types-int-float-complexhttps://docs.python.org/3.9/library/stdtypes.html#numeric-types-int-float-complex
Please reload this pagehttps://github.com/python/cpython/pull/15329
serhiy-storchakahttps://github.com/serhiy-storchaka
Aug 19, 2019https://github.com/python/cpython/pull/15329#discussion_r315386191
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/15329
aeroshttps://github.com/aeros
Aug 19, 2019https://github.com/python/cpython/pull/15329#discussion_r315395034
Please reload this pagehttps://github.com/python/cpython/pull/15329
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/15329
serhiy-storchakahttps://github.com/serhiy-storchaka
Aug 19, 2019https://github.com/python/cpython/pull/15329#discussion_r315424218
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/15329
aeroshttps://github.com/aeros
Aug 19, 2019https://github.com/python/cpython/pull/15329#discussion_r315429576
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/15329
https://github.com/aeros
aeroshttps://github.com/aeros
Aug 19, 2019 https://github.com/python/cpython/pull/15329#pullrequestreview-276374395
View reviewed changes https://github.com/python/cpython/pull/15329/files/e658d19083b3d5abfbbe536e3227e3781883e22a
Modules/mathmodule.chttps://github.com/python/cpython/pull/15329/files/e658d19083b3d5abfbbe536e3227e3781883e22a#diff-5b1186dfcc44670529aa53cb728a1c005f58f38324c24787a49f22cec36841c7
aeroshttps://github.com/aeros
Aug 19, 2019https://github.com/python/cpython/pull/15329#discussion_r315064763
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/15329
serhiy-storchakahttps://github.com/serhiy-storchaka
Aug 19, 2019https://github.com/python/cpython/pull/15329#discussion_r315386720
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/15329
aeroshttps://github.com/aeros
Aug 19, 2019https://github.com/python/cpython/pull/15329#discussion_r315397263
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
suggestionhttps://github.com/python/cpython/pull/15212#discussion_r312749680
Please reload this pagehttps://github.com/python/cpython/pull/15329
jdemeyerhttps://github.com/jdemeyer
Aug 19, 2019https://github.com/python/cpython/pull/15329#discussion_r315398455
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/15329
aeroshttps://github.com/aeros
Aug 19, 2019https://github.com/python/cpython/pull/15329#discussion_r315415891
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/15329
serhiy-storchakahttps://github.com/serhiy-storchaka
Aug 19, 2019https://github.com/python/cpython/pull/15329#discussion_r315425093
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/15329
aeroshttps://github.com/aeros
Aug 19, 2019https://github.com/python/cpython/pull/15329#discussion_r315430197
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/15329
https://github.com/jdemeyer
jdemeyerhttps://github.com/jdemeyer
Aug 19, 2019https://github.com/python/cpython/pull/15329#issuecomment-522468891
#15210https://github.com/python/cpython/pull/15210
Please reload this pagehttps://github.com/python/cpython/pull/15329
https://github.com/aeros
aeroshttps://github.com/aeros
Aug 19, 2019 https://github.com/python/cpython/pull/15329#pullrequestreview-276414157
View reviewed changes https://github.com/python/cpython/pull/15329/files/e658d19083b3d5abfbbe536e3227e3781883e22a
aeroshttps://github.com/aeros
Please reload this pagehttps://github.com/python/cpython/pull/15329
https://github.com/python/cpython/pull/15329#pullrequestreview-276414157
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/15329
https://github.com/aeros
aeroshttps://github.com/aeros
Aug 19, 2019https://github.com/python/cpython/pull/15329#issuecomment-522474565
#15210https://github.com/python/cpython/pull/15210
Please reload this pagehttps://github.com/python/cpython/pull/15329
https://github.com/jdemeyer
jdemeyerhttps://github.com/jdemeyer
Aug 19, 2019 https://github.com/python/cpython/pull/15329#ref-pullrequest-482040325
bpo-37836: document as_integer_ratio() in the data model #15328 https://github.com/python/cpython/pull/15328
https://github.com/jdemeyer
jdemeyerhttps://github.com/jdemeyer
Aug 19, 2019 https://github.com/python/cpython/pull/15329#pullrequestreview-276780381
View reviewed changes https://github.com/python/cpython/pull/15329/files/e658d19083b3d5abfbbe536e3227e3781883e22a
jdemeyerhttps://github.com/jdemeyer
https://github.com/python/cpython/pull/15329#pullrequestreview-276780381
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/15329
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Aug 19, 2019https://github.com/python/cpython/pull/15329#issuecomment-522732485
#15210https://github.com/python/cpython/pull/15210
Please reload this pagehttps://github.com/python/cpython/pull/15329
https://github.com/aeros
aeroshttps://github.com/aeros
Aug 19, 2019 https://github.com/python/cpython/pull/15329#pullrequestreview-276818313
View reviewed changes https://github.com/python/cpython/pull/15329/files/e658d19083b3d5abfbbe536e3227e3781883e22a
Modules/mathmodule.chttps://github.com/python/cpython/pull/15329/files/e658d19083b3d5abfbbe536e3227e3781883e22a#diff-5b1186dfcc44670529aa53cb728a1c005f58f38324c24787a49f22cec36841c7
aeroshttps://github.com/aeros
Aug 19, 2019https://github.com/python/cpython/pull/15329#discussion_r315414117
Please reload this pagehttps://github.com/python/cpython/pull/15329
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/15329
serhiy-storchakahttps://github.com/serhiy-storchaka
Aug 19, 2019https://github.com/python/cpython/pull/15329#discussion_r315427135
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/15329
aeroshttps://github.com/aeros
Aug 19, 2019https://github.com/python/cpython/pull/15329#discussion_r315432595
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/15329
https://github.com/serhiy-storchaka
Optimize.https://github.com/python/cpython/pull/15329/commits/86f9f20a4b6ea2219475e9564be28ba7dc1ce933
86f9f20https://github.com/python/cpython/pull/15329/commits/86f9f20a4b6ea2219475e9564be28ba7dc1ce933
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Aug 24, 2019https://github.com/python/cpython/pull/15329#event-2581340591
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
August 24, 2019 10:10https://github.com/python/cpython/pull/15329#event-2581340597
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F15329
https://github.com/jdemeyer
jdemeyer https://github.com/jdemeyer
https://github.com/python/cpython/pull/15329/files/e658d19083b3d5abfbbe536e3227e3781883e22a
https://github.com/aeros
aeros https://github.com/aeros
https://github.com/python/cpython/pull/15329/files/e658d19083b3d5abfbbe536e3227e3781883e22a
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
performance https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Aperformance
Please reload this pagehttps://github.com/python/cpython/pull/15329
https://github.com/serhiy-storchaka
https://github.com/jdemeyer
https://github.com/aeros
https://github.com/the-knights-who-say-ni
https://github.com/bedevere-bot
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.