This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients christian.heimes, wsqat
Date 2020-11-18.10:17:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1605694632.22.0.0532967932805.issue42397@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2020-11-18 10:17:12christian.heimessetrecipients: + christian.heimes, wsqat
2020-11-18 10:17:12christian.heimessetmessageid: <1605694632.22.0.0532967932805.issue42397@roundup.psfhosted.org>
2020-11-18 10:17:12christian.heimeslinkissue42397 messages
2020-11-18 10:17:12christian.heimescreate