[issue7355] Struct incorrectly compiles format strings

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

[issue7355] Struct incorrectly compiles format strings

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