[issue705836] struct.pack of floats in non-native endian order
Mark Dickinson
report at bugs.python.org
Sat Mar 8 19:13:56 CET 2008
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 <report at bugs.python.org>
<http://bugs.python.org/issue705836>
____________________________________
More information about the Python-bugs-list
mailing list