New submission from Steve Krenzel :
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&q
Steve Krenzel 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 behav