Dan Sommers wrote:

without_prefix
without_suffix

They're a little longer, but IMO "without" helps
reenforce the immutability of the underlying string.

We don't seem to worry about that distinction for other
string methods, such as lstrip and rstrip.

--
Greg
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to