Mark Dickinson added the comment: Coming back to this, I think that it actually *is* clear what struct(">f", large_float) should do: it should raise OverflowError. This fits in well with the general philosophy that Python (at least tries to) follow for floating-point exceptions.
The attached patch (705836_v2.patch) fixes this. All tests pass with this patch applied. I'll leave this around for a few days in case anyone wants to comment on it; then I plan to apply it to the trunk. ---------- keywords: +patch Added file: http://bugs.python.org/file9637/705836_v2.patch ____________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue705836> ____________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com