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 mark.dickinson
Recipients Ananthakrishnan, lemburg, mark.dickinson, rhettinger, serhiy.storchaka, steven.daprano, stutzbach, tim.peters, veky, vstinner
Date 2020-01-30.10:31:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Great. For clarity, here's a Python function giving the behaviour I'd expect from a 2-arg lcm:

    from math import gcd

    def lcm(a, b):
        if a == 0:
            return 0
        return abs(a // gcd(a, b) * b)
Date User Action Args
2020-01-30 10:31:06mark.dickinsonsetrecipients: + mark.dickinson, lemburg, tim.peters, rhettinger, vstinner, stutzbach, steven.daprano, serhiy.storchaka, veky, Ananthakrishnan
2020-01-30 10:31:06mark.dickinsonsetmessageid: <>
2020-01-30 10:31:06mark.dickinsonlinkissue39479 messages
2020-01-30 10:31:06mark.dickinsoncreate