Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #63253

Re: "More About Unicode in Python 2 and 3"

Date 2014-01-05 16:46 -0800
From Ethan Furman <ethan@stoneleaf.us>
Subject Re: "More About Unicode in Python 2 and 3"
References <lablra$1mc$2@ger.gmane.org>
Newsgroups comp.lang.python
Message-ID <mailman.4994.1388972182.18130.python-list@python.org> (permalink)

Show all headers | View raw


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!

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: "More About Unicode in Python 2 and 3" Ethan Furman <ethan@stoneleaf.us> - 2014-01-05 16:46 -0800

csiph-web