
Dec. 28, 2000
5:36 p.m.
Guido van Rossum writes:
Someone just posted a patch to implement s.chomp() as a string method: I.e. it removes a trailing \r\n, \r, or \n.
Any comments? Is this needed given that we have s.rstrip() already?
-1 from me. P=NP (Python is not Perl). "Chomp" is an excessively cute name. And like you said, this is too much like "rstrip" to merit a separate method.