Christian Heimes <li...@cheimes.de> added the comment:
The methods works as designed and documented. The arguments to str.strip, lstrip, and rstrip methods are not prefixes / suffixes. They are sets of characters. >>> "bad".lstrip("ab") 'd' https://docs.python.org/3/library/stdtypes.html?highlight=lstrip#str.lstrip ---------- nosy: +christian.heimes resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42397> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com