[issue22486] Add math.gcd()

Mark Dickinson report at bugs.python.org
Sun Oct 5 11:03:17 CEST 2014


Mark Dickinson added the comment:

> I suggest to modify fractions.gcd() to use math.gcd() if the two parameters are int.

Sounds fine to me, so long as the code (both fractions.gcd and the fractions.Fraction implementation) continues to function as before for objects that don't have exact type int.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22486>
_______________________________________


More information about the Python-bugs-list mailing list