[Python-ideas] Add the imath module

Serhiy Storchaka storchaka at gmail.com
Thu Jul 12 09:41:38 EDT 2018


12.07.18 16:15, Robert Vanden Eynde пише:
> About the name, why not intmath ?

Because cmath. But if most core developers prefer intmath, I have no 
objections.

> And why not using sage ?
> Or create a package on pypi ?

Because some of these function could be useful in the stdlib.
Because the special purposed module is a better home for some math 
functions.
Because it is convenient to have these simple batteries included. Sage 
is too heavyweight.

The reasons are the same as for adding factorial() and gcd() in the math 
module. But after adding more such functions it is better to move them 
into the special module.



More information about the Python-ideas mailing list