[issue22486] Add math.gcd()
Serhiy Storchaka
report at bugs.python.org
Sun Oct 5 12:26:35 CEST 2014
Serhiy Storchaka added the comment:
I suggest just add deprecation warning in fractions.gcd(). Or at least add
notes which recommend math.gcd() in the docstring and the documentation of
fractions.gcd().
> One other suggestion: I think math.gcd should work with arbitrary Python
> objects implementing __index__, and not just with instances of int.
Agree.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22486>
_______________________________________
More information about the Python-bugs-list
mailing list