Gerhard Häring wrote: > Most of the time, I want to strip any trailing whitespace and do > something like: > > f = file("/path/to/my/file") > for line in f: > line = line.strip() > # ... s/strip/rstrip/g -- Gerhard