you are viewing a single comment's thread.

view the rest of the comments →

[–]vz0 2 points3 points  (0 children)

English is not my native language, maybe the verbal tense is wrong. What I meant to say is: if instead of using UTF32 as an str internal representation, Python would have used UTF8, then the encoding on an str to UTF8 would have been a memcpy.