New submission from Steve Krenzel sgk...@gmail.com:
The struct module has a calcsize() method which reports the size of the data
for a specified format
string. In some instances, to the best of my knowledge, this is wrong.
To repro:
from struct import calcsize
calcsize(ci)
8
calcsize(ic)
5
Steve Krenzel sgk...@gmail.com added the comment:
Just for clarification, why does ci get padded but ic doesn't?
While I agree that updating the documentation would help clarify,
perhaps either everything should be padded to word boundaries or
nothing should.
It is weird behavior that ic