Steven D'Aprano <[email protected]> added the comment:
the argument to string.strip (also lstrip and rstrip) is not an exact substring
to remove, but a set of characters to remove:
py> 'zyxzz1234'.strip('xyz')
'1234'
----------
nosy: +steven.daprano
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue33362>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com