.title() - annoying mistake

Grant Edwards grant.b.edwards at gmail.com
Sat Mar 20 15:13:00 EDT 2021


On 2021-03-20, Robert Latest via Python-list <python-list at python.org> wrote:
> Mats Wichmann wrote:
>> The problem is that there isn't a standard for title case,
>
> The problem is that we owe the very existence of the .title() method to too
> much weed being smoked during Python development. It makes specific assumptions
> about a specific use case of one specific language. It doesn't get more
> idiotic, frankly.

Ah, you've never used PHP then?

I haven't checked but it's a fair bit that PHP has 3-4 different
built-in ways to do it, and they're all broken in interestingly
unpredictable ways.

--
Grant





More information about the Python-list mailing list