Checking if string starts with list element

Alex cut_me_out at hotmail.com
Mon Aug 14 12:12:06 EDT 2000


> Put your list of strings into a dictionary, chop the first element out
> of your comma-delimited string, then do a dict lookup.

Oh, yeah, that'll be much faster.

Alex.

-- 
To succeed in the world it is not enough to be stupid; you must also be
well-mannered. -- Voltaire




More information about the Python-list mailing list