[issue1580] Use shorter float repr when possible
Guido van Rossum
report at bugs.python.org
Mon Dec 17 23:56:49 CET 2007
Guido van Rossum added the comment:
This is what I was thinking of before, although I'd use "%.16g"%f and
"%.17g"%f instead of str(f) and repr(f), and I'd use float() instead
of eval().
I suspect that it doesn't satisfy Tim Peters though, because this may
depend on a rounding bug in the local platform's input function.
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1580>
__________________________________
More information about the Python-bugs-list
mailing list