[Python-ideas] Python Numbers as Human Concept Decimal System

Chris Angelico rosuav at gmail.com
Sat Mar 8 23:25:16 CET 2014


On Sun, Mar 9, 2014 at 9:15 AM, Andrew Barnert <abarnert at yahoo.com> wrote:
>> 3) Possibly change repr(float) to include the tag.
>
> 3a) Change repr(Decimal) to use the new literal.

I'd put that in the consequences of part 1 - it's pretty obvious that,
with a decimal literal, the repr of a Decimal should be that. It'd
affect people's tests but shouldn't break much else. But changing
repr(float) means tagging everything, rather than just having a new
convenient notation for Decimal. It's the same physical/technical
change but it has a lot more implication :)

And yeah. You listed several significant quinseconses, and I've no
doubt there'll be others.

ChrisA


More information about the Python-ideas mailing list