4 ms·
For myself this is the money quote of that worthy posting: "There are effectively three string types in the Python [3] world: bytes, Unicode strings, and strin
by theophrastus 10y ago
For myself this is the money quote of that worthy posting:
"There are effectively three string types in the Python [3] world: bytes, Unicode strings, and strings. And there are inconsistencies among them. For example, sys.path() returns bytes on Unix, but strings on other operating systems. In addition, cgi.parse_multipart() returns strings on Python 3, which is just wrong."
It'd be edifying to read about how this is a better situation (in python 3 versus 2) and/or how it might be ameliorated.