On Fri, Nov 15, 2019 at 9:53 AM Greg Ewing <greg.ew...@canterbury.ac.nz> 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 -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/5MYWGMOPTMTHE7HFKLPVVADGKMOXXPJN/ Code of Conduct: http://python.org/psf/codeofconduct/