Dennis Sweeney <sweeney.dennis...@gmail.com> added the comment:
This is the intended behavior. Use s.removeprefix() and s.removesuffix() instead. ---------- nosy: +Dennis Sweeney _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44513> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com