A bug in struct module on the 64-bit platform?

jepler at unpythonic.net jepler at unpythonic.net
Thu Dec 1 14:27:39 CET 2005

I'm guessing that the expected behavior is
    >>> struct.calcsize('idi')
because the double should be aligned to an 8-byte boundary.
This is the case on my linux/x86_64 machine:
    $ python -c 'import struct; print struct.calcsize("idi")'
I don't know much about 'itanium', but i'd be surprised if they
chose 4-byte alignment for doubles.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20051201/3950414a/attachment.sig>

More information about the Python-list mailing list