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

Fredrik Lundh fredrik at pythonware.com
Thu Dec 16 08:35:34 EST 1999


Klaus Baldermann <kbaldermann at entire-systems.com> wrote:
> 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.

umm.  I had to read the code to understand what
the documentation tries to say...

but you're right; if you use the "<" and ">" prefixes,
python uses "standard" sizes, so a "long" is 32 bits
also on a 64-bit box...

the eff-bot apologizes for the inconvenience.

</F>





More information about the Python-list mailing list