COMMITS
/ Lib/fractions.py July 7, 2025
S
gh-87790: support thousands separators for formatting fractional part of Fraction (#132204)
Sergey B Kirpichev committed
July 3, 2025
S
gh-130664: Treat '0' fill character with align '=' as zero-padding for Fraction's (GH-131067)
Sergey B Kirpichev committed
June 2, 2025
S
gh-130662: Accept leading zeros in precision/width for Fraction's formatting (#130663)
Sergey B Kirpichev committed
May 20, 2025
S
gh-72902: improve Fraction constructor speed for typical inputs (GH-134320)
Sergey B Kirpichev committed
May 3, 2025
S
gh-133306: Use \z instead of \Z in regular expressions in the stdlib (GH-133337)
Serhiy Storchaka committed
April 16, 2025
S
gh-130104: Call __rpow__ in ternary pow() if necessary (GH-130251)
Serhiy Storchaka committed
October 14, 2024
S
gh-121797: Add class method Fraction.from_number() (GH-121800)
Serhiy Storchaka committed
July 19, 2024
S
gh-82017: Support as_integer_ratio() in the Fraction constructor (GH-120271)
Serhiy Storchaka committed
June 3, 2024
S
gh-119838: Treat Fraction as a real value in mixed arithmetic operations with complex (GH-119839)
Serhiy Storchaka committed
May 31, 2024
J
gh-119189: Fix the power operator for Fraction (GH-119242)
Joshua Herman committed
May 29, 2024
W
gh-119594: Improve pow(fraction.Fraction(), b, modulo) error message (#119593)
Wim Jeantine-Glenn committed
February 10, 2024
January 13, 2024
C
gh-114014: Update `fractions.Fraction()`'s rational parsing regex (#114015)
Crowthebird committed
December 16, 2023
M
gh-67790: Support basic formatting for Fraction (#111320)
Mark Dickinson committed
February 27, 2023
S
gh-101825: Clarify that as_integer_ratio() output is always normalized (#101843)
Sergey B Kirpichev committed
S
gh-101773: Optimize creation of Fractions in private methods (#101780)
Sergey B Kirpichev committed
January 22, 2023
M
gh-67790: Support float-style formatting for Fraction instances (#100161)
Mark Dickinson committed
January 8, 2023
S
gh-91851: Micro optimizations for arithmetic between Fractions (#25518)
Sergey B Kirpichev committed
January 6, 2023
S
gh-91851: Trivial optimizations in Fraction (#100791)
Sergey B Kirpichev committed
January 1, 2023
S
gh-100488: Add is_integer method to fractions.Fraction (#100489)
Shantanu committed
September 7, 2022
R
GH-96465: Cache hashes for Fraction instances (GH-96483)
Raymond Hettinger committed
September 2, 2022
R
Allow whitespace around a slash in fraction string inputs (GH-96496)
Raymond Hettinger committed
June 21, 2022
M
Minor optimization for Fractions.limit_denominator (GH-93730)
Mark Dickinson committed
October 21, 2021
M
bpo-44547: Make Fractions objects instances of typing.SupportsInt (GH-27851)
Mark Dickinson committed
June 7, 2021
S
bpo-44258: support PEP 515 for Fraction's initialization from string (GH-26422)
Sergey B Kirpichev committed
May 29, 2021
S
Trivial change in fractions module docs: real -> rational numbers (GH-25009)
Sergey B Kirpichev committed
May 17, 2021
S
bpo-44154: optimize Fraction pickling (GH-26186)
Sergey B Kirpichev committed
March 22, 2021
S
bpo-43420: Simple optimizations for Fraction's arithmetics (GH-24779)
Sergey B Kirpichev committed
February 7, 2020
V
bpo-39350: Fix fractions for int subclasses (GH-18375)
Victor Stinner committed
February 6, 2020
S
bpo-39274: Ensure Fraction.__bool__() returns a bool (GH-18017)
Sebastian Berg committed
January 16, 2020
V
bpo-39350: Remove deprecated fractions.gcd() (GH-18021)
Victor Stinner committed
August 17, 2019
T
Add a minor `Fraction.__hash__()` optimization (GH-15313)
Tim Peters committed
August 16, 2019
R
bpo-37863: Optimize Fraction.__hash__() (#15298)
Raymond Hettinger committed
August 11, 2019
R
bpo-37819: Add Fraction.as_integer_ratio() (GH-15212)
Raymond Hettinger committed
April 15, 2019
J
bpo-36625: Remove obsolete comments from docstrings in fractions module (GH-12822)
Jakub Molinski committed
January 2, 2019
S
bpo-35588: Speed up mod, divmod and floordiv operations for Fraction type (#11322)
Stefan Behnel committed
August 27, 2018
August 23, 2016
M
Issue #27832: Make _normalize parameter to Fraction.__init__ keyword-only.
Mark Dickinson committed
August 22, 2016
M
Issue #27539: Merge from 3.5.
Mark Dickinson committed
December 29, 2015
S
Issue #25971: Optimized creating Fractions from floats by 2 times and from
Serhiy Storchaka committed
May 12, 2015
S
Issue #22486: Added the math.gcd() function. The fractions.gcd() function now is
Serhiy Storchaka committed
September 24, 2014
G
#22464: Speed up common Fraction operations by special-casing several
Georg Brandl committed
July 25, 2014
S
Issue #22033: Reprs of most Python implemened classes now contain actual
Serhiy Storchaka committed
April 5, 2014
M
November 15, 2012
November 13, 2010
M
Make Fraction(-1).__hash__() return -2 rather than -1 (see issue 10356).
Mark Dickinson committed
May 23, 2010
M
Issue #8188: Introduce a new scheme for computing hashes of numbers
Mark Dickinson committed
April 3, 2010
M
Merged revisions 79629 via svnmerge from
Mark Dickinson committed
March 27, 2010
M
Merged revisions 79455 via svnmerge from
Mark Dickinson committed