From 7caf908c64a0d6d8c875e7403f22992227be47f2 Mon Sep 17 00:00:00 2001 From: Mark Dickinson Date: Tue, 23 Aug 2016 16:16:52 +0100 Subject: Issue #27832: Make _normalize parameter to Fraction.__init__ keyword-only. --- Lib/fractions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/fractions.py') diff --git a/Lib/fractions.py b/Lib/fractions.py index a7120522cf..8330202d70 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 -- cgit v1.2.1