[issue23816] struct.unpack returns null pascal strings - [first] bug report
Xiang Zhang
report at bugs.python.org
Thu May 4 00:39:15 EDT 2017
Xiang Zhang added the comment:
My previous two messages are not clear enough so I delete them. Sorry for the noise. :-(
When unpacking a pascal string, you cannot simply specify a p format character otherwise struct calculate a wrong size of the format. That's why unpack fails. When count conflicts with the length byte, the smaller one is chosen. I think this is consistent with packing.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23816>
_______________________________________
More information about the Python-bugs-list
mailing list