5 ms·
That always bites people. `lstrip` and `rstrip` take a set of characters to be removed not a prefix/suffix. >>> "foobarbaz".lstrip("fo") 'barbaz'
by digianarchist 6y ago
That always bites people. `lstrip` and `rstrip` take a set of characters to be removed not a prefix/suffix.
>>> "foobarbaz".lstrip("fo")
'barbaz'