Re: [Tutor] struct.calcsize curiosity...

2008-03-25 Thread Greg Graham
Lawrence Wang wrote: > >>> struct.calcsize('hq') > 12 > >>> struct.calcsize('qh') > 10 > > why is this? is it platform-dependent? i'm on mac os x. This has to do with data alignment and is platform-dependent. Are you on a PowerPC Macintosh? On my Intel Windows XP box, I get the following: In [3]:

[Tutor] struct.calcsize curiosity...

2008-03-25 Thread Lawrence Wang
>>> struct.calcsize('hq') 12 >>> struct.calcsize('qh') 10 why is this? is it platform-dependent? i'm on mac os x. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor