Newbie question about lists

Robert Kern rkern at ucsd.edu
Thu Jul 21 03:42:39 CEST 2005


Paul Rubin wrote:
> "Leo Jay" <Python.LeoJay at gmail.com> writes:
> 
>>[Decimal("0.25"), Decimal("0.10"), Decimal("0.05"), Decimal("0.01")]
> 
> I wonder if we should have some special syntax for decimals: maybe
> 
> [$.25, $.10, $.05, $.01] 
> 
> That would even fit in with decimals being used for financial quantities.

Various versions of the (several) Decimal PEPs had a decimal literal 
syntax, usually along the lines of 0.25d. Google through the python-dev 
archives.

-- 
Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
  Are the graves of dreams allowed to die."
   -- Richard Harter




More information about the Python-list mailing list