2 ms·
> Python now had to micromanage every single string to ensure I don't have any "naughty" bytes in it. Oh that is annoying, our use case just fitted better into
by mrweasel 3y ago
> Python now had to micromanage every single string to ensure I don't have any "naughty" bytes in it.
Oh that is annoying, our use case just fitted better into how Python 3 works. We went the opposite way. We micromanaged strings all over the place to ensure that encodings would always be correct. We needed unicode but also connected to Windows systems, which uses their own weird codepage system. Encoding and decoding was everywhere along with encoding detection. Python 3 made all that go away.
- jimmaswell 3y agoMaybe my case was exceptional and most cases were like yours. That would explain why I'm in the minority preferring old strings.