This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients jonheiner, mark.dickinson, meador.inge, xiang.zhang
Date 2017-05-04.07:40:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1493883643.33.0.893661837652.issue23816@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-05-04 07:40:43mark.dickinsonsetrecipients: + mark.dickinson, meador.inge, jonheiner, xiang.zhang
2017-05-04 07:40:43mark.dickinsonsetmessageid: <1493883643.33.0.893661837652.issue23816@psf.upfronthosting.co.za>
2017-05-04 07:40:43mark.dickinsonlinkissue23816 messages
2017-05-04 07:40:43mark.dickinsoncreate