[issue7355] Struct incorrectly compiles format strings

Eric Smith report at bugs.python.org
Thu Nov 19 20:07:52 CET 2009


Eric Smith <eric at trueblade.com> added the comment:

It's basically because nothing comes after it. If you put something
after it, such as a zero length integer, you'll see:

>>> from struct import calcsize
>>> calcsize("ci")
8
>>> calcsize("ic")
5
>>> calcsize("ic0i")
8

----------

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


More information about the Python-bugs-list mailing list