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 pitrou
Recipients pitrou, termim
Date 2008-12-27.23:07:55
SpamBayes Score 2.7520966e-06
Marked as misclassified No
Message-id <1230419276.71.0.0258523909713.issue4270@psf.upfronthosting.co.za>
In-reply-to
Content
The change in result length is actually normal. If you look at the doc
for the struct module, the default size and byte order character is "@",
which means "native byte order and native size". On x86-64 Linux, the
"native" long size is 64 bits, so the result is 8 bytes long. When using
one of {"<", ">", "!", "="}, you instead select the "standard" long size
according to the struct module which is 32 bits.

I agree it can be surprising though.
History
Date User Action Args
2008-12-27 23:07:57pitrousetrecipients: + pitrou, termim
2008-12-27 23:07:56pitrousetmessageid: <1230419276.71.0.0258523909713.issue4270@psf.upfronthosting.co.za>
2008-12-27 23:07:55pitroulinkissue4270 messages
2008-12-27 23:07:55pitroucreate