Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Type
/
to search
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
python
/
cpython
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
35.2k
Star
74.3k
Code
Issues
5k+
Pull requests
2.5k
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
bpo-43420: Simple optimizations for Fraction's arithmetics
- #24779
#24779
Merged
tim-one
merged 13 commits into
python:master
python/cpython:master
from
skirpichev:opt-fractions
Copy head branch name to clipboard
Mar 22, 2021
Conversation
Commits
13
(13)
Checks
Files changed
Merged
bpo-43420: Simple optimizations for Fraction's arithmetics
#24779
tim-one
merged 13 commits into
python:master
python/cpython:master
from
skirpichev:opt-fractions
Copy head branch name to clipboard
Commits
Commits on Mar 14, 2021
Merge Fraction._add/sub() to a common helper _add_sub_()
skirpichev
committed
598b3c9
View commit details
Copy full SHA for 598b3c9
Browse repository at this point
bpo-43420: Simple optimizations for Fraction's arithmetics
Show description for 430e476
skirpichev
committed
430e476
View commit details
Copy full SHA for 430e476
Browse repository at this point
Use Fraction's private attributes in arithmetic methods
Show description for 046c84e
skirpichev
committed
046c84e
View commit details
Copy full SHA for 046c84e
Browse repository at this point
Commits on Mar 15, 2021
Rational addition/substraction: special-case g2 == 1
Show description for 772bec6
skirpichev
and
tim-one
committed
772bec6
View commit details
Copy full SHA for 772bec6
Browse repository at this point
Commits on Mar 16, 2021
Special-case for trivial gcd in Fraction._mul()/_div() as well
skirpichev
committed
3d5d321
View commit details
Copy full SHA for 3d5d321
Browse repository at this point
Amend _add_sub_() comment for fractions, obtained from floats
skirpichev
committed
32778ab
View commit details
Copy full SHA for 32778ab
Browse repository at this point
Commits on Mar 17, 2021
Revert "Use Fraction's private attributes in arithmetic methods"
Show description for ea38398
skirpichev
committed
ea38398
View commit details
Copy full SHA for ea38398
Browse repository at this point
Revert 598b3c9630 & make _add()/_sub() less nested
skirpichev
committed
f4b151a
View commit details
Copy full SHA for f4b151a
Browse repository at this point
Commits on Mar 18, 2021
Apply spelling fixes
Show description for 40401af
skirpichev
and
mdickinson
authored
40401af
View commit details
Copy full SHA for 40401af
Browse repository at this point
Restore back initial d test in _div() per Mark suggestion
skirpichev
committed
020037a
View commit details
Copy full SHA for 020037a
Browse repository at this point
Add coverage tests (missing in test_fractions.py)
skirpichev
committed
bde52d1
View commit details
Copy full SHA for bde52d1
Browse repository at this point
Commits on Mar 20, 2021
Merge branch 'master' into opt-fractions
skirpichev
committed
51b52b6
View commit details
Copy full SHA for 51b52b6
Browse repository at this point
Update Misc/ACKS
skirpichev
committed
2789350
View commit details
Copy full SHA for 2789350
Browse repository at this point
You can’t perform that action at this time.