This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, dparolin
Date 2008-08-01.00:40:31
SpamBayes Score 0.081854925
Marked as misclassified No
Message-id <1217551233.54.0.394983940783.issue3481@psf.upfronthosting.co.za>
In-reply-to
Content
The struct module is correct.
You see here the result of "alignment": the address of a long is always
 a multiple of the size of a long.

The struct module mimics the C compiler: a "struct { short x; long y;
}", will actually occupy 8 bytes in memory (on a 32bit processor).
There are two padding bytes, that are not used.
History
Date User Action Args
2008-08-01 00:40:33amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, dparolin
2008-08-01 00:40:33amaury.forgeotdarcsetmessageid: <1217551233.54.0.394983940783.issue3481@psf.upfronthosting.co.za>
2008-08-01 00:40:32amaury.forgeotdarclinkissue3481 messages
2008-08-01 00:40:31amaury.forgeotdarccreate