[Python-Dev] Decimal.py in sandbox

Bengt Richter bokr at oz.net
Wed Oct 29 17:07:01 EST 2003


On Wed, 29 Oct 2003 06:02:57 -0300, "Batista, Facundo" <FBatista at uniFON.com.ar> wrote:

   1: This message is in MIME format. Since your mail reader does not understand
   2: this format, some or all of this message may not be legible.
   3:
   4: ------_=_NextPart_001_01C39DFB.724C9700
   5: Content-Type: text/plain;
   6:   charset="iso-8859-1"
   7: Content-Transfer-Encoding: quoted-printable
   8:
   9: Aahz wrote:
  10:
  11: #- > >>> myDecimal =3D Decimal(5)=09
  12: #- > >>> myfloat =3D 3.0
  13: #- > >>> mywhat =3D myDecimal + myfloat
  14: #- > >>> isinstance(mywhat, float)
  15: #- > True
  16: #-=20
  17: #- Absolutely not.  No way, no how, no time.  -1000
  18:
  19: :)
  20:
  21:
  22: #- are inexactly represented in Python.  My opinion is that conversion
  23: #- between float and Decimal should always be explicit (and my=20
  24: #- recollection
  25: #- is that Tim Peters agrees).
  26:
  27: I'm not decided for any option. I just want (it will be nice) the group =
  28: to
  29: decant either way. There's some controversial about this.
  30:
  31: Anyway, I'll explicit the options in the pre-PEP, and we all will take =
  32: a
  33: side, :)
  34:
  35:
  36: . Facundo
  37:
  38:
  39:
  40:
  41:
  42: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . =
  43: . . .
  44: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . =
  45: . . .
  46: . . . . . . . . . . . . . . .
  47: ADVERTENCIA =20
  48:
  49: La informaci=F3n contenida en este mensaje y cualquier archivo anexo al =
  50: mismo,
  51: son para uso exclusivo del destinatario y pueden contener informaci=F3n
  52: confidencial o propietaria, cuya divulgaci=F3n es sancionada por la =
  53: ley.=20
  54:
  55: Si Ud. No es uno de los destinatarios consignados o la persona =
  56: responsable
  57: de hacer llegar este mensaje a los destinatarios consignados, no est=E1
  58: autorizado a divulgar, copiar, distribuir o retener informaci=F3n (o =
  59: parte de
  60: ella) contenida en este mensaje. Por favor notif=EDquenos respondiendo =
  61: al
  62: remitente, borre el mensaje original y borre las copias (impresas o =
  63: grabadas
  64: en cualquier medio magn=E9tico) que pueda haber realizado del mismo.=20
  65:
  66: Todas las opiniones contenidas en este mail son propias del autor del
  67: mensaje y no necesariamente coinciden con las de Telef=F3nica =
  68: Comunicaciones
  69: Personales S.A. o alguna empresa asociada.=20
  70:
  71: Los mensajes electr=F3nicos pueden ser alterados, motivo por el cual
  72: Telef=F3nica Comunicaciones Personales S.A. no aceptar=E1 ninguna =
  73: obligaci=F3n
  74: cualquiera sea el resultante de este mensaje.=20
  75:
  76: Muchas Gracias.
  77:
  78: ------_=_NextPart_001_01C39DFB.724C9700
  79: Content-Type: text/html;
  80:   charset="iso-8859-1"
  81: Content-Transfer-Encoding: quoted-printable
  82:
  83: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
  84: <HTML>
  85: <HEAD>
  86: <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
  87: charset=3Diso-8859-1">
  88: <META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
  89: 5.5.2654.45">
  90: <TITLE>RE: [Python-Dev] Decimal.py in sandbox</TITLE>
  91: </HEAD>
  92: <BODY>
  93:
  94: <P><FONT SIZE=3D2>Aahz wrote:</FONT>
  95: </P>
  96:
  97: <P><FONT SIZE=3D2>#- > >>> myDecimal =3D Decimal(5) </FONT>
  98: <BR><FONT SIZE=3D2>#- > >>> myfloat =3D 3.0</FONT>
  99: <BR><FONT SIZE=3D2>#- > >>> mywhat =3D myDecimal + =
 100: myfloat</FONT>
 101: <BR><FONT SIZE=3D2>#- > >>> isinstance(mywhat, =
 102: float)</FONT>
 103: <BR><FONT SIZE=3D2>#- > True</FONT>
 104: <BR><FONT SIZE=3D2>#- </FONT>
 105: <BR><FONT SIZE=3D2>#- Absolutely not.  No way, no how, no =
 106: time.  -1000</FONT>
 107: </P>
 108:
 109: <P><FONT SIZE=3D2>:)</FONT>
 110: </P>
 111: <BR>
 112:
 113: <P><FONT SIZE=3D2>#- are inexactly represented in Python.  My =
 114: opinion is that conversion</FONT>
 115: <BR><FONT SIZE=3D2>#- between float and Decimal should always be =
 116: explicit (and my </FONT>
 117: <BR><FONT SIZE=3D2>#- recollection</FONT>
 118: <BR><FONT SIZE=3D2>#- is that Tim Peters agrees).</FONT>
 119: </P>
 120:
 121: <P><FONT SIZE=3D2>I'm not decided for any option. I just want (it will =
 122: be nice) the group to decant either way. There's some controversial =
 123: about this.</FONT></P>
 124:
 125: <P><FONT SIZE=3D2>Anyway, I'll explicit the options in the pre-PEP, and =
 126: we all will take a side, :)</FONT>
 127: </P>
 128: <BR>
 129:
 130: <P><FONT SIZE=3D2>. Facundo</FONT>
 131: </P>
 132: <BR>
 133: <BR>
 134: <BR>
 135: <BR>
 136:
 137: <P><B><FONT SIZE=3D2>. . . . . . . . . . . . . . . . . . . . . . . . . =
 138: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . =
 139: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . =
 140: .</FONT></B></P>
 141:
 142: <P><B><U><FONT SIZE=3D2>ADVERTENCIA </FONT></U> </B>
 143: </P>
 144:
 145: <P><B><FONT SIZE=3D2>La informaci=F3n contenida en este mensaje y =
 146: cualquier archivo anexo al mismo, son para uso exclusivo del =
 147: destinatario y pueden contener informaci=F3n confidencial o =
 148: propietaria, cuya divulgaci=F3n es sancionada por la ley. =
 149: </FONT></B></P>
 150:
 151: <P><B><FONT SIZE=3D2>Si Ud. No es uno de los destinatarios consignados =
 152: o la persona responsable de hacer llegar este mensaje a los =
 153: destinatarios consignados, no est=E1 autorizado a divulgar, copiar, =
 154: distribuir o retener informaci=F3n (o parte de ella) contenida en este =
 155: mensaje. Por favor notif=EDquenos respondiendo al remitente, borre el =
 156: mensaje original y borre las copias (impresas o grabadas en cualquier =
 157: medio magn=E9tico) que pueda haber realizado del mismo. </FONT></B></P>
 158:
 159: <P><B><FONT SIZE=3D2>Todas las opiniones contenidas en este mail son =
 160: propias del autor del mensaje y no necesariamente coinciden con las de =
 161: Telef=F3nica Comunicaciones Personales S.A. o alguna empresa asociada. =
 162: </FONT></B></P>
 163:
 164: <P><B><FONT SIZE=3D2>Los mensajes electr=F3nicos pueden ser alterados, =
 165: motivo por el cual Telef=F3nica Comunicaciones Personales S.A. no =
 166: aceptar=E1 ninguna obligaci=F3n cualquiera sea el resultante de este =
 167: mensaje. </FONT></B></P>
 168:
 169: <P><B><FONT SIZE=3D2>Muchas Gracias.</FONT></B>
 170: </P>
 171:
 172: </BODY>
 173: </HTML>
 174: ------_=_NextPart_001_01C39DFB.724C9700--

Perhaps this way it is visible what you are doing ?

Regards,
Bengt Richter




More information about the Python-list mailing list