Author Jean Abou Samra
Recipients Jean Abou Samra, facundobatista, mark.dickinson, rhettinger, skrah
Date 2020-07-16.14:13:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Common mathematical functions such as sqrt(), exp(), etc. are available for decimal numbers as methods of decimal.Decimal instances (like This does not pair well with the math and cmath modules as well as NumPy and SymPy which all define these as functions. It also makes it harder to switch to decimals instead of floats when you realize that your program lacks arithmetic precision.

It would be nice to have functions in the decimal module that called the corresponding methods. This would unify the interface with other modules while keeping backwards compatibility and preserving the possibility to subclass Decimal.
Date User Action Args
2020-07-16 14:13:33Jean Abou Samrasetrecipients: + Jean Abou Samra, rhettinger, facundobatista, mark.dickinson, skrah
2020-07-16 14:13:33Jean Abou Samrasetmessageid: <>
2020-07-16 14:13:33Jean Abou Samralinkissue41315 messages
2020-07-16 14:13:33Jean Abou Samracreate