SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 0 Python

bpo-39350: Fix fractions for int subclasses (GH-18375)

Fix regression in fractions.Fraction if the numerator and/or the
denominator is an int subclass. The math.gcd() function is now
used to normalize the numerator and denominator. math.gcd() always
return a int type. Previously, the GCD type depended on numerator
and denominator.
V
Victor Stinner committed
dc7a50d73a3d16918529669ff7b8783c08cff090
Parent: 60ac6ed
Committed by GitHub <noreply@github.com> on 2/7/2020, 10:42:51 PM