diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2016-08-23 15:16:52 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2016-08-23 15:16:52 (GMT) |
commit | 7caf908c64a0d6d8c875e7403f22992227be47f2 (patch) | |
tree | 68d8ac2ed42eec79ba69423e9f35324fef52a945 /Lib/fractions.py | |
parent | f4d28d43857295cab4dc82a2bc50f5e8c90123ef (diff) | |
download | cpython-7caf908c64a0d6d8c875e7403f22992227be47f2.zip cpython-7caf908c64a0d6d8c875e7403f22992227be47f2.tar.gz cpython-7caf908c64a0d6d8c875e7403f22992227be47f2.tar.bz2 |
Issue #27832: Make _normalize parameter to Fraction.__init__ keyword-only.
Diffstat (limited to 'Lib/fractions.py')
-rw-r--r-- | Lib/fractions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/fractions.py b/Lib/fractions.py index a712052..8330202 100644 --- a/Lib/fractions.py +++ b/Lib/fractions.py @@ -81,7 +81,7 @@ class Fraction(numbers.Rational): __slots__ = ('_numerator', '_denominator') # We're immutable, so use __new__ not __init__ - def __new__(cls, numerator=0, denominator=None, _normalize=True): + def __new__(cls, numerator=0, denominator=None, *, _normalize=True): """Constructs a Rational. Takes a string like '3/2' or '1.5', another Rational instance, a |