appending to beginning of line
Bob X
bobx at linuxmail.org
Wed Oct 9 06:05:38 EDT 2002
More information about the Python-list mailing list
Wed Oct 9 06:05:38 EDT 2002
- Previous message (by thread): delete a methode of a object?
- Next message (by thread): appending to beginning of line
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Anna wrote: <snip> >> for badword in kw: >> if line.find(... >> found = '... >> print found # Print the result > > > else: > print "-" # no bad word so print a placeholder > > >> outFile.write(found) # Write the result > > > This is a question, rather than a suggestion. > > Please don't flame if I've missed something completely obvious to the > experienced folks here. Any simple explanations of why this is unworkable > would be welcome. Thank you. > > Anna Hey Anna, I am a serious newbie as well. I believe (though) I would have to test that all I would get is the hyphen and not a hypen plus the line. I can play with that and see. I don't flame. : )
- Previous message (by thread): delete a methode of a object?
- Next message (by thread): appending to beginning of line
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list