This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tim.peters
Recipients Ananthakrishnan, lemburg, mark.dickinson, rhettinger, serhiy.storchaka, steven.daprano, stutzbach, tim.peters, veky, vstinner
Date 2020-01-29.22:23:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1580336635.77.0.61037581081.issue39479@roundup.psfhosted.org>
In-reply-to
Content
+0 from me.

Another use is computing the Carmichael function for composite numbers (like an RSA encryption modulus, in which context the Carmichael function is routinely used).

But only +0 instead of +1 because it's so easy to build from gcd().

I don't agree it's tricky at all.  While lcm(0, 0) undoubtedly should return 0 in a general-purpose library function, in my own code I've never supplied that.  Because in every application I've ever had for it, I would rather get an exception if I ever passed two zeroes - that would always have been a mistake.
History
Date User Action Args
2020-01-29 22:23:55tim.peterssetrecipients: + tim.peters, lemburg, rhettinger, mark.dickinson, vstinner, stutzbach, steven.daprano, serhiy.storchaka, veky, Ananthakrishnan
2020-01-29 22:23:55tim.peterssetmessageid: <1580336635.77.0.61037581081.issue39479@roundup.psfhosted.org>
2020-01-29 22:23:55tim.peterslinkissue39479 messages
2020-01-29 22:23:55tim.peterscreate