string goes away

Skip Montanaro skip at pobox.com
Thu Mar 31 21:50:31 EST 2005


    >>> upper_list = map(string.upper, list_of_str)

    Andreas> What am I supposed to do instead?

Try

    [s.upper() for s in list_of_str]

Skip



More information about the Python-list mailing list