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

jepler at unpythonic.net jepler at unpythonic.net
Thu Dec 1 08:27:39 EST 2005


I'm guessing that the expected behavior is
    >>> struct.calcsize('idi')
    20
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")'
    20
I don't know much about 'itanium', but i'd be surprised if they
chose 4-byte alignment for doubles.

http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,180,00.html

Jeff
-------------- 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