=?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