struct calcsize discrepency?

Glen Rice glen.rice.noaa at gmail.com
Sun Dec 4 09:25:16 EST 2011


In IPython:
>import struct
>struct.calcsize('4s')
4
>struct.calcsize('Q')
8
>struct.calcsize('4sQ')
16

This doesn't make sense to me.  Can anyone explain?



More information about the Python-list mailing list