[Python-Dev] chomp()?

Charles G Waldman cgw@fnal.gov
Thu, 28 Dec 2000 11:36:06 -0600 (CST)


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.