[Python-Dev] (no subject) (original) (raw)
Guido van Rossum guido@python.org
Thu, 18 Apr 2002 13:40:14 -0400
- Previous message: [Python-Dev] (no subject)
- Next message: [Python-Dev] Significance of informational PEPs
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Me too. But what about:
"oofoo".strip("foo") => "" "oofoo".strip(["foo", "bar"]) => "oo" I.e., strip could accept any sequence (rather than just a string) as its optional parameter, and strip all occurrences of any item in that sequence. More flexible, but I can't think of a good use case, to be honest.
That's why I'm going to call YAGNI on it.
--Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] (no subject)
- Next message: [Python-Dev] Significance of informational PEPs
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]