[issue5145] struct.calcsize('cd') returns 16 instead of 9

bob gailer report at bugs.python.org
Tue Feb 3 20:13:23 CET 2009


bob gailer <bgailer at gmail.com> added the comment:

Someone pointed out that one must consider alignment. I had overlooked
that. It makes sense that a d is double-word aligned.

Perhaps the documentation should mention alignment.

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


More information about the Python-bugs-list mailing list