On Dec 5, 8:09 am, Chris Angelico <ros...@gmail.com> wrote:
> May be, yes, but since calcsize() is returning 12 when the elements
> are put in the other order, it would seem to be not counting such
> padding.

Indeed.  That's arguably a bug in the struct module, and one that
people have had to find workarounds for in the past.  See note 3 at:

http://docs.python.org/library/struct.html#byte-order-size-and-alignment

If it weren't for backwards compatibility issues, I'd say that this
should be fixed.

--
Mark
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to