[Python-Dev] Decimal conversion to string

Greg Ewing greg at cosc.canterbury.ac.nz
Wed Apr 14 21:45:09 EDT 2004

Aahz <aahz at pythoncraft.com>:

> 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. 

But who cares about the gory details of the internals?
The most important thing about a repr() is to unambiguously
indicate the object's type; the next is to show something
about its value, as far as reasonably possible. What's
actually inside the object doesn't matter much.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg at cosc.canterbury.ac.nz	   +--------------------------------------+

More information about the Python-Dev mailing list