Mark Dickinson added the comment: Specifically, I believe what's happening here is that "8s4spp" is interpreted as "8s4s1p1p", so it decodes a single byte (which can only encode an empty string) for each of the "1p" cases.
I wonder whether the struct module should raise an exception if the length byte read from the encoded data exceeds the count given in the format. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23816> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com