[Python-Dev] (no subject) (original) (raw)

Guido van Rossum guido@python.org
Thu, 18 Apr 2002 11:51:16 -0400


What's still missing is the version for unicode. Note that my patch http://www.python.org/sf/424606 works a little different: Here the argument is a complete word that should be stripped, not a collection of characters, i.e. your version: "oofoo".strip("foo") => "" my version: "oofoo".strip("foo") => "oo"

Aargh! I prefer my version -- it's more similar to the default usage (which boils down to something like s.strip(" \t\n\r\f")) and more practical (e.g. stripping trailing punctuation).

--Guido van Rossum (home page: http://www.python.org/~guido/)