
Dec. 23, 2022
10:02 a.m.
Chris Angelico writes:
I don't think str.upper() is the place for it; Python has a locale module that is a better fit for this.
Many would argue that (POSIX) locales aren't a good fit for anything. :-) I agree that it's kind of hard to see anything more complex than a fixed table for the entire Unicode repertoire belonging in str, though. (I admit that my feeling toward Erdogan makes me less sympathetic to the Turks. :-) Use of locale notation in keys for more sophisticated treatment is hard to beat as far as I know, though. Steve