3 ms·
I think python also takes the approach where strings must be valid unicode. Both Rust and Python use their String types to represent valid unicode, and somethin
by cptroot 6y ago
I think python also takes the approach where strings must be valid unicode. Both Rust and Python use their String types to represent valid unicode, and something else ([] and byte strings, respectively) to represent other encodings and invalid unicode.