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 xiang.zhang
Recipients Arfrever, benjamin.peterson, docs@python, martin.panter, r.david.murray, rhettinger, serhiy.storchaka, vstinner, xiang.zhang, zbysz
Date 2017-04-27.04:41:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
+1 for change bytes to str. But struct.Struct() accepts both bytes and str, maybe in future buffer objects. When it gets a bytes object, converting it to a str looks unnecessary to me, and as OP said, comparison (a theoretical use case) could still fail. Could we just leave what the user passes in? bytes(bytes-like) -> bytes, str -> str. This looks more natural to me.
Date User Action Args
2017-04-27 04:41:57xiang.zhangsetrecipients: + xiang.zhang, rhettinger, vstinner, benjamin.peterson, Arfrever, r.david.murray, zbysz, docs@python, martin.panter, serhiy.storchaka
2017-04-27 04:41:57xiang.zhangsetmessageid: <>
2017-04-27 04:41:57xiang.zhanglinkissue21071 messages
2017-04-27 04:41:57xiang.zhangcreate