[Python-Dev] Decimal conversion to string

Aahz aahz at pythoncraft.com
Wed Apr 14 10:46:14 EDT 2004


On Tue, Apr 13, 2004, Ka-Ping Yee wrote:
>
> Could we please have repr(d) use the string in the constructor
> rather than the tuple form?  That would be much easier to read.

I'm not dead-set on using a tuple form, but I think it's more useful for
someone trying to see the internals of a Decimal instance.  The string
form already contains all the necessary information to reconstruct a
Decimal object (unlike floats).
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

Why is this newsgroup different from all other newsgroups?



More information about the Python-Dev mailing list