absolute removal of '\n' and the like
S Borg
spwpreston at gmail.com
Fri Feb 10 18:21:58 EST 2006
Hello,
If I have a string, what is the strongest way to assure the
removal of any line break characters?
Line break characters must always be the last character in a line, so
would
this: str = linestring[:-1]
work?
This is my first real 'learning python' project, and I don't want to
get in the habit
of doing things the 'Java way'. Your comments and suggestions are very
much
appreciated.
thanks,
S
More information about the Python-list
mailing list