perl chomp equivalent in python?
paul at prescod.net
Thu Feb 10 03:12:57 CET 2000
Jeff Bauer wrote:
> 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?
Oops. I thought there *was* a second argument. I probably thought that
last year too. Any minute now, Tim's going to point out that even with a
second argument strip would be subtly different from Perl's mind reading
behavior. It's all coming back to me now.
Paul Prescod - ISOGEN Consulting Engineer speaking for himself
"The calculus and the rich body of mathematical analysis to which it
gave rise made modern science possible, but it was the algorithm that
made possible the modern world."
- from "Advent of the Algorithm" David Berlinski
More information about the Python-list