On Fri, Nov 15, 2019 at 9:53 AM Greg Ewing <[email protected]> wrote:
>
> On 15/11/19 7:39 am, Chris Angelico wrote:
> > But in your
> > source code, if you type 4.1, you are asking for the floating-point
> > value
>
> The idea of providing decimal literals comes up from time to
> time, but so far it hasn't gotten anywhere. The problem is that
> it would make the core interpreter dependent on the Decimal
> module.
>

Plus they have their own peculiarities, including that (x+y)/2 might
not be between x and y. Also, run-time changes to the decimal context
can't affect literals, which could cause very confusing behaviour.

ChrisA
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/5MYWGMOPTMTHE7HFKLPVVADGKMOXXPJN/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to