Author vstinner
Recipients Ananthakrishnan, lemburg, mark.dickinson, rhettinger, stutzbach, vstinner
Date 2020-01-28.14:06:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1580220366.76.0.78550125405.issue39479@roundup.psfhosted.org>
In-reply-to
Content
There is math.gcd():
https://docs.python.org/dev/library/math.html#math.gcd

You can use numpy.lcm():
https://docs.scipy.org/doc/numpy-1.15.0/reference/generated/numpy.lcm.html

Is it common to need lcm()? Do you have examples of applications which need lcm()? It's trivial to implement lcm():
https://stackoverflow.com/questions/51716916/built-in-module-to-calculate-least-common-multiple

I suggest to reject this feature request, since I never needed lcm() in 10 years of Python, whereas I use gcd() time to time.
History
Date User Action Args
2020-01-28 14:06:06vstinnersetrecipients: + vstinner, lemburg, rhettinger, mark.dickinson, stutzbach, Ananthakrishnan
2020-01-28 14:06:06vstinnersetmessageid: <1580220366.76.0.78550125405.issue39479@roundup.psfhosted.org>
2020-01-28 14:06:06vstinnerlinkissue39479 messages
2020-01-28 14:06:06vstinnercreate