5 ms·
> Python3 treats Unicode as first class citizen as opposed to raw strings of bytes like in Python2. Python 2 Unicode support is not like that at all. Unicode s
by zurn 14y ago
> Python3 treats Unicode as first class citizen as opposed to raw strings of bytes like in Python2.
Python 2 Unicode support is not like that at all. Unicode
strings themselves work pretty much like they do in Python 3.
The problem with Unicode & Python 2 is that there is also a non-Unicode string type that is used for legacy reasons in many places and mixing the two is error prone because of the implicit str<->unicode conversions that only work for ascii chars.