Re: absolute removal of '\n' and the like

2006-02-10 Thread S Borg
Steven, Thank you very much for your insights. They are quite helpful. S -- http://mail.python.org/mailman/listinfo/python-list

Re: absolute removal of '\n' and the like

2006-02-10 Thread Steven D'Aprano
On Fri, 10 Feb 2006 15:21:58 -0800, S Borg wrote: > Hello, > > If I have a string, what is the strongest way to assure the > removal of any line break characters? What do you mean "strongest"? Fastest, most memory efficient, least lines of code, most lines of code, least bugs, or just a vague "

Re: absolute removal of '\n' and the like

2006-02-10 Thread S Borg
Russ, Thanks a ton for ending a 3 day headache. S -- http://mail.python.org/mailman/listinfo/python-list

Re: absolute removal of '\n' and the like

2006-02-10 Thread Russell Blau
"S Borg" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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?

absolute removal of '\n' and the like

2006-02-10 Thread S Borg
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 i