3 ms·
>>> 'おはようございます'[::-1] Why do people keep using this as an example? A character is not a necessarily a single code point; reversing code points is not any more
by pwdisswordfish 10y ago
>>> 'おはようございます'[::-1]
Why do people keep using this as an example? A character is not a necessarily a single code point; reversing code points is not any more meaningful than reversing bytes. And reversing strings isn't something frequently needed in practice either.
Let me make this as clear as possible:
a code point is not a character
a code point is not a character
a code point is not a character
I want the author to read that, over and over again, until it sinks in.