Help?? Struct packing of Date time not has stopped working??!?!

Klaus Baldermann kbaldermann at entire-systems.com
Thu Dec 16 08:01:05 EST 1999


Fredrik Lundh wrote in message
<01c401bf47c3$dfe75da0$f29b12c2 at secret.pythonware.com>...

>"!L" to unpack a 32-bit integer is a lousy idea --
>what if you're running on a 64-bit platform?


well, I guess the struct module (or at least its documentation)
would have to be changed then :-)

"""
Native size and alignment are determined using the C compiler's sizeof
expression. This is always combined with native byte order.

Standard size and alignment are as follows: no alignment is required for any
type (so you have to use pad bytes);
short is 2 bytes; int and long are 4 bytes. float and double are 32-bit and
64-bit IEEE floating point numbers, respectively.
"""

Klaus








More information about the Python-list mailing list