Mark Dickinson <dicki...@gmail.com> added the comment: Here's a patch, against the trunk, that simply amends load_float to ignore errno on underflow (while retaining it on overflow). This fixes the problem on my machine.
The added tests may be a little severe. There's no *good* reason why dumping and then loading a float on the same machine shouldn't produce exactly the same value, but there are likely many bad reasons. I propose to checkin the change and watch the buildbots carefully; if there are failures I'll weaken the tests to check for approximate equality instead of exact equality. ---------- keywords: +patch Added file: http://bugs.python.org/file12762/issue1672332.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1672332> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com