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 serhiy.storchaka
Recipients Arfrever, benjamin.peterson, docs@python, martin.panter, r.david.murray, rhettinger, serhiy.storchaka, vstinner, xiang.zhang, zbysz
Date 2017-04-27.07:05:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
After changing the type of Struct.format to str we perhaps should deprecate accepting bytes as format. Currently this can lead to emitting a BytesWarning.

$ ./python -Wa -b
>>> import struct
>>> struct.pack('I', 12345)
>>> struct.pack(b'I', 12345)
__main__:1: BytesWarning: Comparison between bytes and string
__main__:1: BytesWarning: Comparison between bytes and string
Date User Action Args
2017-04-27 07:05:22serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, vstinner, benjamin.peterson, Arfrever, r.david.murray, zbysz, docs@python, martin.panter, xiang.zhang
2017-04-27 07:05:22serhiy.storchakasetmessageid: <>
2017-04-27 07:05:22serhiy.storchakalinkissue21071 messages
2017-04-27 07:05:22serhiy.storchakacreate