M.-A. Lemburg wrote: > Anyway, this whole discussion about a new bytes type doesn't > really solve the problem that the b'...' literal was > intended for: that of having a nice way to define (read-only) > 8-bit binary string literals. But why do you need a way to spell 8-bit string literals? You can always do "string".encode("L1") If that is too much typing, do def b(s):return s.encode("L1") b("string") Regards, Martin
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4