3 ms·
I am curious, why not .lower().translate('_.', '--')
by est 9mo ago
I am curious, why not .lower().translate('_.', '--')
- fwip 9mo ago.lower() has to handle Unicode, right? I imagine the giant tables slow it down a bit.
- mort96 9mo agoIt's so annoying how so many languages lack a basic "ASCII lowercase" and "ASCII uppercase" function. All the Unicode logic is not only unnecessary, but actively unwanted, when you e.g want to change the case of a hex encoded string or do normalization on some machine generated ASCII-only output.