(No subject)

Steven Bethard steven.bethard at gmail.com
Thu Dec 16 22:49:11 CET 2004


Jeremy Jones wrote:
> Mark Devine wrote:
>> I'm brand new to python and I was wondering if anybody knew of a easy 
[snip]
> You could use string.lower (make sure you "import string"):

string.lower is deprecated in Python 2.4.  Better to go with str.lower 
as Diez B. Roggisch suggested:

commands = [c.lower() for c in commands]

Steve



More information about the Python-list mailing list