[Python-Dev] Re: Decimal data type issues
FBatista at uniFON.com.ar
Fri Apr 16 09:53:35 EDT 2004
#- I find boolean arguments a general anti-pattern, especially given we
#- have class methods. Why not use an alternate constructor like::
#- pi =
This is a good idea to me.
We all must decide which of the following is better:
a) Decimal(number) # no context used
b) Decimal(number) # no context used
"number" can be string, int, etc., but NOT float. The issue with rounding at
a defined position has nothing to do with context.
More information about the Python-Dev