Author The Compiler
Recipients The Compiler, mark.dickinson, meador.inge, serhiy.storchaka, tadeu
Date 2020-09-13.14:24:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1600007097.15.0.00117569585148.issue41777@roundup.psfhosted.org>
In-reply-to
Content
Ah, also see https://bugs.python.org/issue21071#msg292409 where the same thing was mentioned as part of another issue as well.

After some discussions in the Python IRC channel, I guess it's acceptable for dicts to raise a ByteWarning here - after all, there *is* a comparison between str/bytes going on here. It might be an implementation detail, but so is e.g.   b'a' in ['a']   and I'd certainly expect that to give me a warning/error with -b/-bb.

So I guess if struct continues to accept bytes as format string, it should probably decode them to ASCII or something before interacting with the cache?
History
Date User Action Args
2020-09-13 14:24:57The Compilersetrecipients: + The Compiler, mark.dickinson, meador.inge, serhiy.storchaka, tadeu
2020-09-13 14:24:57The Compilersetmessageid: <1600007097.15.0.00117569585148.issue41777@roundup.psfhosted.org>
2020-09-13 14:24:57The Compilerlinkissue41777 messages
2020-09-13 14:24:57The Compilercreate