STINNER Victor <vstin...@python.org> added the comment:
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(). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39939> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com