perl to python, case + regular expression question

Carsten Gaebler cg at schlund.de
Wed Jul 26 04:02:45 EDT 2000


Andrew Dalke wrote:

> words = string.split(input_line)
> if words.get(0, None) == "log":

get() only works with dictionaries, not with sequences.

Carsten.



More information about the Python-list mailing list