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 <1594908813.57.0.321710561647.issue41315@roundup.psfhosted.org>
In-reply-to
Content
Common mathematical functions such as sqrt(), exp(), etc. are available for decimal numbers as methods of decimal.Decimal instances (like https://docs.python.org/3/library/decimal.html#decimal.Decimal.exp). 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.
History
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: <1594908813.57.0.321710561647.issue41315@roundup.psfhosted.org>
2020-07-16 14:13:33Jean Abou Samralinkissue41315 messages
2020-07-16 14:13:33Jean Abou Samracreate