[Tutor] struct question
bob gailer
bgailer at gmail.com
Tue Feb 3 20:05:57 CET 2009
W W wrote:
>
>
> On Tue, Feb 3, 2009 at 6:25 PM, bob gailer <bgailer at gmail.com
> <mailto:bgailer at gmail.com>> wrote:
>
> >>> struct.calcsize('s')
> 1
> >>> struct.calcsize('d')
> 8
> >>> struct.calcsize('sd')
> 16
>
> Why? Should not that be 9?
>
>
> >>> struct.calcsize('ds')
> 9
>
> at least on the current box I'm running. It also gave me this:
>
> >>> struct.calcsize('sd')
> 12
>
> so I must confess suspicion...
I have submitted this as a bug. Same behavior with c instead of s.
--
Bob Gailer
Chapel Hill NC
919-636-4239
More information about the Tutor
mailing list