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 vstinner
Recipients Dennis Sweeney, doerwalter, eric.smith, gvanrossum, rhettinger, steven.daprano, vstinner, xtreak
Date 2020-04-20.21:11:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1587417098.42.0.822417287835.issue39939@roundup.psfhosted.org>
In-reply-to
Content
When, I even expect that some people use .strip() whereas their intent was to use .lstrip():

>>> "Python vs Monty Python".strip("Python")
' vs Monty '

Again, strip() is used with a string whereas the real intent was to use removesuffix() which didn't exist ;-)

A note should be added to lstrip(), strip() and rstrip() documentation to point to removeprefix() and/or removesuffix().
History
Date User Action Args
2020-04-20 21:11:38vstinnersetrecipients: + vstinner, gvanrossum, doerwalter, rhettinger, eric.smith, steven.daprano, xtreak, Dennis Sweeney
2020-04-20 21:11:38vstinnersetmessageid: <1587417098.42.0.822417287835.issue39939@roundup.psfhosted.org>
2020-04-20 21:11:38vstinnerlinkissue39939 messages
2020-04-20 21:11:38vstinnercreate