[issue30712] struct.unpack generates wrong error in certain conditions
knzsys
report at bugs.python.org
Wed Jun 21 06:48:25 EDT 2017
knzsys added the comment:
many many thanks for your help!
and fast responses :-)
this explain my oberservations
why only the first 2 bytes are padded?
0xAABBCCDD (4 bytes = real32) to 0x0000AABBCCDD (6 bytes)
and not to 0x0000AABB0000CCDD (8 bytes)
it has something to do with the behavior of the C compiler’s sizeof expression? and why?
since I need pack / unpack often in my projects, i want to have it completely clarified.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30712>
_______________________________________
More information about the Python-bugs-list
mailing list