]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Use the new struct module's ability to pack and unpack standardized
authorGuido van Rossum <guido@python.org>
Thu, 2 Jan 1997 22:52:15 +0000 (22:52 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 2 Jan 1997 22:52:15 +0000 (22:52 +0000)
commit6083f0e9ce84de9f8b3aa0531a833b9de285438d
treebaffb375cefa3b743f0e66722dbf99088126cc67
parent07ef655222e4db5ad4e5fff68b35d05e4ff713a2
Use the new struct module's ability to pack and unpack standardized
data formats.  The _xdr module is no longer used, since struct
supports the required IEEE floats and doubles.

(I have one doubt about not using _xdr.  The struct module doesn't
handle Inf, NaN and gradual underflow correctly.  If the _xdr module
does these things better, it may still have a (small) competitive
advantage.  On the other hand, since not all platforms support IEEE
floating point, it's not clear that it would be a good idea to ever
transfer Inf or NaNs.  Gradual underflow can be fixed in the struct
module.
Lib/xdrlib.py