> 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/)
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