[issue1580] Use shorter float repr when possible
Christian Heimes
report at bugs.python.org
Tue Dec 11 10:11:02 CET 2007
Christian Heimes added the comment:
It's really a shame. It was a nice idea ...
Could we at least use the new formating for str(float) and the display
of floats? In Python 2.6 floats are not displayed with repr(). They seem
to use yet another hook.
>>> repr(11./5)
'2.2'
>>> 11./5
2.2000000000000002
>>> str(11./5)
'2.2'
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1580>
__________________________________
More information about the Python-bugs-list
mailing list