6 ms·
This just got much clearer in Python3, all string literals are now Unicode by default, making it much easier to code internationalized programs in Python. Ther
by gitarr 14y ago
This just got much clearer in Python3, all string literals are now Unicode by default, making it much easier to code internationalized programs in Python.
There is an "Explicit Unicode Literal" (u"string"), to make it easier for library authors to run their libs in one codebase on Python 2 and Python 3. (In Python 3 "string" is the same as u"string")
Codecs are in their own modules, like for example base64, where they belong.
The confusions seems to be with Python 2, Python 3 has fixed it, so move on.