[issue1580] Use shorter float repr when possible
Mark Dickinson
report at bugs.python.org
Fri Jul 11 17:31:54 CEST 2008
Mark Dickinson <dickinsm at gmail.com> added the comment:
Mildly off-topic: it seems that currently eval(repr(x)) == x isn't
always true, anyway. On OS X 10.5.4/Intel, I get:
>>> x = (2**52-1)*2.**(-1074)
>>> x
2.2250738585072009e-308
>>> y = eval(repr(x))
>>> y
2.2250738585072014e-308
>>> x == y
False
This is almost certainly an OS X bug...
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1580>
_______________________________________
More information about the Python-bugs-list
mailing list