[issue6646] test_pickle fails on AIX -- 6.9999999999999994e-308 != 6.9999999999999984e-308
Mark Dickinson
report at bugs.python.org
Fri Aug 14 19:14:32 CEST 2009
Mark Dickinson <dickinsm at gmail.com> added the comment:
Closing this as a won't fix: as far as I can tell, the test failure is
due to a platform deficiency (string <-> float conversions provided by the
C standard library aren't correctly rounded; moreover, they're not
accurate enough that converting a C double to 17 significant digits and
back recovers the original double). It's not clear what Python can
reasonably do to fix this. I'd prefer not to disable or weaken these
tests, since they're useful on other platforms.
srid, if you do have any alternative suggestions about how this might be
fixed then please do submit them.
For what it's worth, this particular failure should no longer be a problem
in Python 3.1 and higher, since 3.1 uses its own string <-> float
conversion code (based on David Gay's dtoa.c).
----------
resolution: -> wont fix
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6646>
_______________________________________
More information about the Python-bugs-list
mailing list