[Tutor] struct question

Marc Tompkins marc.tompkins at gmail.com
Tue Feb 3 20:14:37 CET 2009


On Tue, Feb 3, 2009 at 11:05 AM, bob gailer <bgailer at gmail.com> wrote:

> I have submitted this as a bug. Same behavior with c instead of s.
>

I don't think it's a bug.  Each double requires 8 bytes; that 8 bytes needs
to start at an 8-byte boundary.  If your struct starts with a 1-byte object,
then some empty padding bytes need to be inserted.  It's like loading the
dishwasher.

--
www.fsrtechnologies.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090203/af2fd554/attachment.htm>


More information about the Tutor mailing list