[Python-ideas] decimal by default

Guido van Rossum guido at python.org
Tue May 13 16:04:49 CEST 2008


On Tue, May 13, 2008 at 6:52 AM, Joshua Spoerri
<joshua.spoerri at gmail.com> wrote:
> Should decimal be the default for floating period literals?
>
> E.g.
> 1.2 would actually be decimal.Decimal("1.2")
> and float(1.2) would be used to get traditional binary float point.

Not in 3.0, there are too many things that are subtly different.
Perhaps at some point post 3.0 we can invent a mechanism whereby
modules can enable this feature on a per-module basis, and then some
number of revisions later we can change the default.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-ideas mailing list