4 ms·
High quality unicode? Where every string with even a single emoji takes 4 times the memory. They should have used UTF-8 for their internal representation. Pu
by Avernar 10y ago
High quality unicode? Where every string with even a single emoji takes 4 times the memory. They should have used UTF-8 for their internal representation.
Putting that aside, my issue with 3.X is that I have to use the unicode type even when I'm manipulating byte strings.
- scrollaway 10y ago> even when I'm manipulating byte strings What? No you don't. The `bytes` object is what you want when you deal with byte strings.
- Avernar 10y agoThe bytes object is not a string type. It's treated more like a list of integers. It has very little string operations. Only in 3.5 did they add back the ability to % format. Not to mention all the b prefixes it just becomes painful.