A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-April/023361.html below:

[Python-Dev] (no subject)

[Python-Dev] (no subject) [Python-Dev] (no subject)Fred L. Drake, Jr. fdrake@acm.org
Thu, 18 Apr 2002 11:20:17 -0400
=?iso-8859-1?Q?Walter_D=F6rwald?= writes:
 > your version: "oofoo".strip("foo") => ""
 > my version: "oofoo".strip("foo") => "oo"

It sounds like yours is more like Perl's chomp(), with an option about
what to chomp off.  Not a bad idea, not sure I'd ever use more than:

     line = line.chomp('\n')


  -Fred

-- 
Fred L. Drake, Jr.  <fdrake at acm.org>
PythonLabs at Zope Corporation




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