May-20-2019, 06:16 AM
a found a case where i can use bytes with strings, though there could be more such cases. what i found by experimenting is that the str.translate() method accepts bytes for the table. the table just needs to be rather long to translate some Unicode characters. and, of course, it can only translate to a character with an ordinal from 0 to 255.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.