extend methods of decimal module

Chris Angelico rosuav at gmail.com
Fri Feb 28 00:26:11 EST 2014


On Fri, Feb 28, 2014 at 4:18 PM, Mark H. Harris <harrismh777 at gmail.com> wrote:
> do I make the assumption that all functions will take a string as argument and then let interactive users bare the responsibility to enter a string or decimal... avoiding floats...

Just have your users pass in Decimal objects. They can construct them
however they wish.

ChrisA



More information about the Python-list mailing list