James Kingston Clarke

TIL About pythons `casefold`

"Hello, World!".casefold() should be used over .lower() as it takes into account unicode character lowering nuances. For example ß can be lowered to ss but it’s ambiguous if ss should be SS or ß when uppere’d.

References