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:02:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1587416520.22.0.861674666276.issue39939@roundup.psfhosted.org>
In-reply-to
Content
The documentation should explain well the difference between removeprefix()/removesuffix() and lstrip()/strip()/rstrip(), since it is the rationale of the PEP ;-)

An example that can be used to explain the difference:

>>> "Monty Python".removesuffix(" Python")
'Monty'
>>> "Monty Python".strip(" Python")
'M'
History
Date User Action Args
2020-04-20 21:02:00vstinnersetrecipients: + vstinner, gvanrossum, doerwalter, rhettinger, eric.smith, steven.daprano, xtreak, Dennis Sweeney
2020-04-20 21:02:00vstinnersetmessageid: <1587416520.22.0.861674666276.issue39939@roundup.psfhosted.org>
2020-04-20 21:02:00vstinnerlinkissue39939 messages
2020-04-20 21:02:00vstinnercreate