logoalt Hacker News

JoshTriplettlast Saturday at 10:26 PM1 replyview on HN

That distinction is indeed critical, and I'm not suggesting removing that distinction. My point is that you could give all those types names, and manage the transition by having Python 3 change the defaults (e.g. that a string is unicode).


Replies

kstrauserlast Saturday at 10:32 PM

I’m a little confused. That’s basically with Python 3 did, right? In py2, “foo” is a string of bytes, and u”foo” is Unicode. In py3, both are Unicode, and bytes() is a string of bytes.

show 1 reply