[issue39648] Update math.gcd() to accept "n" arguments.

Bernardo Sulzbach report at bugs.python.org
Mon Feb 17 17:47:13 EST 2020


Bernardo Sulzbach <bernardo at bernardosulzbach.com> added the comment:

I think this might make sense because gcd() could have some optimizations for n > 2, such as sorting the numbers and starting by the smallest elements.

However, I don't think gcd() and lcm() with more than two arguments are frequent use cases.

----------
nosy: +BernardoSulzbach

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39648>
_______________________________________


More information about the Python-bugs-list mailing list