3 ms·
This was published in 2005. Unicode in python has come a long way since then, especially with respect to python 3 [1], [2]. [1] http://docs.python.org/release
by grifaton 15y ago
This was published in 2005. Unicode in python has come a long way since then, especially with respect to python 3 [1], [2].
[1] http://docs.python.org/release/3.0.1/whatsnew/3.0.html#text-vs-data-instead-of-unicode-vs-8-bit http://docs.python.org/release/3.0.1/whatsnew/3.0.html#text-...
[2] http://docs.python.org/release/3.0.1/howto/unicode.html http://docs.python.org/release/3.0.1/howto/unicode.html
- joeyespo 15y agoPython 2 is still the status quo though. One of my favorite things about Python 3 is its new string handling. It is fantastic and marginally more intuitive. Having an explicit (and a more general) immutable `bytes` class, no longer sharing a base class with `unicode`, and having Unicode instead of a potentially-encoded string as the default are all wonderful decisions and moves Python forward by miles in my opinion. Until Python 3 becomes the norm, we're still stuck with the confusing `str` and `unicode` constructs.