Why is lower() deprecated and how should I replace it?

Dan Bishop danb_83 at yahoo.com
Sun Mar 13 09:54:02 CET 2005

gf gf wrote:
> I read that lower() is deprecated.  Unfortunately, I
> can't find the preferred way of lowercasing a string.
>  What is it?

Instead of string.lower(s), use s.lower()

More information about the Python-list mailing list