New submission from CliffM: While implementing a Least-Common-Multiple function (LCM), I noticed that although python has a Greatest-Common-Divisor (GCD) function in the fractions module, the LCM, its counterpart is not there.
I've attached a patch which implements and tests LCM in the fractions module. It would really need documentation, but maybe GCD and LCD should be moved to the math module first ? ---------- components: Extension Modules files: lcm.patch keywords: patch messages: 199624 nosy: CliffM priority: normal severity: normal status: open title: Proposal : LCM function to complement GCD type: enhancement versions: Python 3.4 Added file: http://bugs.python.org/file32068/lcm.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19237> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com