Mark Dickinson <dicki...@gmail.com> added the comment: > Historically, we've had a stronger requirement: if you print repr(x) > and ship that string to a different machine, float() of that string > returns the same value, assuming both systems use the same internal FP > representation (e.g. IEEE).
Hmm. With the py3k-short-float-repr stuff, we should be okay moving things between different CPython boxes, since float() would use Gay's code and so would be correctly rounded for any length input, not just input with 17 significant digits. But for a CPython-generated short repr to give the correct value on some other implementation, that implementation would also have to have a correctly rounded string->float. For safety's sake, I'll make sure that marshal (version 1) and pickle (protocol 0) are still outputting the full 17 digits. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1580> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com