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 tim.peters
Recipients Andres.Adjimann, tim.peters
Date 2013-07-31.20:29:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1375302572.95.0.160238909758.issue18607@psf.upfronthosting.co.za>
In-reply-to
Content
Looks fine to me.  The third one uses native size and alignment (see the "Byte Order, Size, and Alignment" section of the struct docs).  After the first 5 B's, a pad byte is inserted so that the next H is properly aligned (to a 2-byte boundary).  That makes 6 bytes so far.  H then takes 2 bytes, making 8 bytes so far.  The final B adds the 9th byte.  As the docs say, < and > do no padding, so no pad byte is added in the first two cases.
History
Date User Action Args
2013-07-31 20:29:33tim.peterssetrecipients: + tim.peters, Andres.Adjimann
2013-07-31 20:29:32tim.peterssetmessageid: <1375302572.95.0.160238909758.issue18607@psf.upfronthosting.co.za>
2013-07-31 20:29:32tim.peterslinkissue18607 messages
2013-07-31 20:29:32tim.peterscreate