This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Alexander.Belopolsky
Recipients Alexander.Belopolsky, kiilerix
Date 2010-04-20.14:11:39
SpamBayes Score 2.0052735e-06
Marked as misclassified No
Message-id <1271772701.43.0.851578010879.issue8469@psf.upfronthosting.co.za>
In-reply-to
Content
It is very easy to generate the size table programmatically:

>>> for c in "xcbB?hHiIlLqQfdspP":
...     print(c, struct.calcsize(c))
... 
x 1
c 1
b 1
B 1
? 1
h 2
H 2
i 4
I 4
l 8
L 8
q 8
Q 8
f 4
d 8
s 1
p 1
P 8

However, all values above except trivial 1-byte entries are platform dependent and C types are already well documented.
History
Date User Action Args
2010-04-20 14:11:41Alexander.Belopolskysetrecipients: + Alexander.Belopolsky, kiilerix
2010-04-20 14:11:41Alexander.Belopolskysetmessageid: <1271772701.43.0.851578010879.issue8469@psf.upfronthosting.co.za>
2010-04-20 14:11:40Alexander.Belopolskylinkissue8469 messages
2010-04-20 14:11:39Alexander.Belopolskycreate