perl chomp equivalent in python?
Jeff Bauer
jbauer at rubic.com
Wed Feb 9 19:59:45 EST 2000
Paul Prescod wrote:
> What about string.strip and string.rstrip?
Those methods are indiscriminate with chopping
off whitespace when you want to preserve trailing
tabs/spaces (e.g. tab-delimited files).
Wait a sec ... didn't we already have a similar
discussion last year when you proposed adding
a second argument to the string.strip() family?
Jeff Bauer
Rubicon Research
More information about the Python-list
mailing list