[issue5145] struct.calcsize('cd') returns 16 instead of 9
STINNER Victor
report at bugs.python.org
Thu Feb 5 11:46:53 CET 2009
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
The default endiand and alignment is "native". Using <, >, = or !
endian, the alignement is standard.
Python 3.1a0 (py3k:69105M, Feb 3 2009, 15:04:35)
>>> struct.calcsize('cd')
12
>>> struct.calcsize('=cd')
9
>>> struct.calcsize('<cd')
9
----------
nosy: +haypo
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5145>
_______________________________________
More information about the Python-bugs-list
mailing list