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 <1493276722.75.0.96912630692.issue21071@psf.upfronthosting.co.za>
In-reply-to
Content
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)
b'90\x00\x00'
>>> struct.pack(b'I', 12345)
__main__:1: BytesWarning: Comparison between bytes and string
__main__:1: BytesWarning: Comparison between bytes and string
b'90\x00\x00'
History
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: <1493276722.75.0.96912630692.issue21071@psf.upfronthosting.co.za>
2017-04-27 07:05:22serhiy.storchakalinkissue21071 messages
2017-04-27 07:05:22serhiy.storchakacreate