[Tutor] re matching

Michael Janssen Janssen@rz.uni-frankfurt.de
Wed May 7 11:23:01 2003


On Thu, 1 May 2003, Michael Montagne wrote:

> I'm trying to quickly parse some errors out of mail.log.
[snip some code]

> It should make a list of strings representing lines with the word
> "Abandoning" on them.  Then for each of those strings, look through
> the same list of strings for those matching the string.  But I can not

why research the lines after you already found them? Just put each line
into a list within if-statement (beside the date)

Sidenote:
aList = aList + ["string"]  is funktionial, but generate a *new* list on
each step. aList.append("string") is conventionally and fast.

Michael