.title() - annoying mistake

Cameron Simpson cs at cskk.id.au
Sat Mar 20 18:47:51 EDT 2021


On 20Mar2021 12:53, Sibylle Koczian <nulla.epistola at web.de> wrote:
>Am 20.03.2021 um 09:34 schrieb Alan Bawden:
>>The real reason Python strings support a .title() method is surely
>>because Unicode supports upper, lower, _and_ title case letters, and
>>tells you how to map between them. [...]
>>
>But that's exactly what he's doing, with a result which is documented, 
>but not really satisfactory.

Not to mention that the .title method _predates_ Python's use of Unicode 
in strings.

Cheers,
Cameron Simpson <cs at cskk.id.au>


More information about the Python-list mailing list