[Python-Dev] Changes to PEP 327: Decimal data type (original) (raw)

Oren Tirosh oren-py-d at hishome.net
Tue Mar 16 06:05:55 EST 2004


On Mon, Mar 15, 2004 at 11:01:12PM -0300, Batista, Facundo wrote:

People:

I'll post a reviewed version of the PEP. The only differences with the previous one will be the treatmen to float in both explicit and implicit construction: ------------ In Explicit construction: You can not call Decimal with a float. Instead you must use a method: Decimal.fromFloat(). The syntax: Decimal.fromFloat(floatNumber, positions)

+1 on the behavior. One nitpick about the method name: this caseConvention is not consistent with the Python Style Guide (PEP 8)

Oren



More information about the Python-Dev mailing list