GCD in standard library?

Blake Garretson blakeg at metalink.net
Wed Mar 12 21:44:11 EST 2003


"Skip Montanaro" wrote:
> Depends on what field you're in.  I have been programming in Python for
nine
> or ten years and have never once had the need for a gcd function.

True.  I'm an engineer so I often use Python for number crunching.

> As for adding it to the math module, that goes against the typical grain
of
> Python's core extension modules.  They generally expose functions in a
> corresponding Unix C library.

Good point.  I didn't think of that.

Thanks for the response,
Blake G.






More information about the Python-list mailing list