You can have both, it's easy as soon as you accept that "byte array" and "string" are different beasts, and you need to convert between them. Doing Unicode right is easy in every language that does this (C#, Java, Haskell), tricky but manageable in those that sort-of do (Python, mainly), and a train wreck in everything that doesn't (PHP, Perl, C, ...).
That said, Python didn't really add much in terms of Unicode support from 2 to 3, the difference is mostly that 3 is a bit stricter when it comes to converting, the names have been fixed, and string literals now default to unicode strings, not bytestrings.
9
u/LET-7 Dec 02 '15 edited Dec 02 '15
So Python actually successfully did this in v3+, right? Why do
peoplepeoples keep using python 2.7?Edit: peoples prefer bad grammar