[issue8469] struct - please make sizes explicit

Alexander Belopolsky report at bugs.python.org
Tue Apr 20 16:11:41 CEST 2010


Alexander Belopolsky <alexander.belopolsky at gmail.com> added the comment:

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.

----------
nosy: +Alexander.Belopolsky

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8469>
_______________________________________


More information about the Python-bugs-list mailing list