[Python-ideas] Python Numbers as Human Concept Decimal System
Antoine Pitrou
solipsis at pitrou.net
Tue Mar 11 08:24:49 CET 2014
On Tue, 11 Mar 2014 09:02:31 +1000
Nick Coghlan <ncoghlan at gmail.com> wrote:
>
> My take is that we're down to two main options:
>
> Stefan: use the existing decimal type, change default context to Decimal64,
> round all decimal literals to current context
>
> Oscar: new fixed width decimal64 builtin type, always uses Decimal64
> context (allowing constant folding), interoperates with variable context
> decimal.Decimal values (producing a decimal.Decimal result)
>
> I lean towards Oscar's proposal, as it removes the hidden context dependent
> behaviour and makes the builtin decimals true constant values.
Yuck. Is this some kind of joke? We've gone through the trouble of
unifying long and int in Python 3 and now people are proposing two
different Decimal types, one with fixed precision and one with
arbitrary precision?
I'm completely -1 on this.
Regards
Antoine.
More information about the Python-ideas
mailing list