Browse Source
Issue #25971: Optimized creating Fractions from floats by 2 times and from
Issue #25971: Optimized creating Fractions from floats by 2 times and from
Decimals by 3 times. Unified error messages in float.as_integer_ratio(), Decimal.as_integer_ratio(), and Fraction constructors.pull/9921/head
5 changed files with 22 additions and 45 deletions
-
6Lib/_pydecimal.py
-
32Lib/fractions.py
-
14Lib/test/test_fractions.py
-
3Misc/NEWS
-
12Objects/floatobject.c
Write
Preview
Loading…
Cancel
Save
Reference in new issue