On Sat, Mar 21, 2020 at 8:38 PM Guido van Rossum <guido@python.org> wrote:
> It's not great, and I actually think that "stripprefix" and "stripsuffix" are reasonable.
> [explanation snipped]

Thinking a bit more, I could also get behind "removeprefix" and "removesuffix".

--
--Guido van Rossum (python.org/~guido)