[Python-Dev] Decimal.py in sandbox

Batista, Facundo FBatista at uniFON.com.ar
Wed Oct 29 04:03:21 EST 2003


Aahz wrote:

#- > >>> myDecimal = Decimal(5)	
#- > >>> myfloat = 3.0
#- > >>> mywhat = myDecimal + myfloat
#- > >>> isinstance(mywhat, float)
#- > True
#- 
#- Absolutely not.  No way, no how, no time.  -1000

:)


#- are inexactly represented in Python.  My opinion is that conversion
#- between float and Decimal should always be explicit (and my 
#- recollection
#- is that Tim Peters agrees).

I'm not decided for any option. I just want (it will be nice) the group to
decant either way. There's some controversial about this.

Anyway, I'll explicit the options in the pre-PEP, and we all will take a
side, :)


. Facundo



More information about the Python-Dev mailing list