perl chomp equivalent in python?
Skip Montanaro
skip at mojam.com
Sat Feb 12 06:51:57 EST 2000
Samuel> Why not just use string.strip()?
As was mentioned earlier in this thread, string.[lr]?strip all remove any
whitespace from the respective end(s) of the line, not just newlines.
Skip Montanaro | http://www.mojam.com/
skip at mojam.com | http://www.musi-cal.com/
"Languages that change by catering to the tastes of non-users tend not to do
so well." - Doug Landauer
More information about the Python-list
mailing list