[Tutor] Recording and eliminating continuation lines

Bob Gailer ramrom@earthling.net
Wed Nov 6 12:09:02 2002


At 08:59 AM 11/6/2002 -0700, Brad Reisfeld wrote:
>I have a file containing a number of lines that I will need to parse.
>Continuation lines in the file are indicated with a backslash at the end of
>the line. I would like to eliminate the continuations, but track which
>'physical lines' lead to each 'logical line'.

I started out to write my own version and found that is was much like 
yours. Assuming that I am a perfect programmer, then you must be one too.

The only thing I'd change is eliminate import string and use the native 
string strip method.

BTW what would make it "better"? Less lines; more sophisticated use of 
builtins? or ???

Bob Gailer
170 Forsythe Rd
Nederland CO 80466
303-442-2625