perl chomp equivalent in python?

Paul Prescod paul at prescod.net
Wed Feb 9 21:12:57 EST 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
	http://www.opengroup.com/mabooks/015/0151003386.shtml




More information about the Python-list mailing list