A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-December/011216.html below:

[Python-Dev] chomp()?

[Python-Dev] chomp()? [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.





RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4