"More About Unicode in Python 2 and 3"

Ethan Furman ethan at stoneleaf.us
Sun Jan 5 19:46:58 EST 2014


On 01/05/2014 05:14 AM, Mark Lawrence wrote:
>
> Please don't shoot the messenger :)

While I don't agree with his assessment of Python 3 in total, I definitely feel his pain with regards to bytestrings in 
Py3 -- because they don't exist.  'bytes' /looks/ like a bytestring, but really it's just a bunch of integers:

--> b'abc
'b'abc'
--> b'abc'[1]
98

Maybe for 3.5 somebody *cough* will make a bytestring type for those of us who have to support the lower-level protocols...

--
~Ethan~

*Cast your vote over on Python Ideas!



More information about the Python-list mailing list