[issue7355] Struct incorrectly compiles format strings

2009-11-19 Thread Steve Krenzel
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

[issue7355] Struct incorrectly compiles format strings

2009-11-19 Thread Steve Krenzel
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