News for hackers. Stuff that matters.
Re:Thoughts on Rust, a few thousand lines in by int_19h on Wednesday January 09, 2019 @07:33PM (#18870492)
Modern Python uses whatever representation is sufficient to ensure 1-unit-per-codepoint for a given string (which it can do on creation, since strings are immutable). So you get ASCII, UTF-16 sans surrogate pairs, or UTF-32.

This is great for high-level code, but painful to work with from native code, because it usually needs some specific encoding to call into other libraries, and it's usually UTF-8 - so you need to re-encode all the time.

There are no comments on this comment yet.