W W wrote:


On Tue, Feb 3, 2009 at 6:25 PM, bob gailer <[email protected] <mailto:[email protected]>> 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
_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to