> On 31 Mar 2019, at 21:32, Christopher Barker <python...@gmail.com> wrote:
> 
> 
> without_prefix
> without_suffix
> 
> They're a little longer, but IMO "without" helps
> reenforce the immutability of the underlying string.  None
> of these functions actually remove part of the original
> string, but rather they return a new string that's the
> original string without some piece of it.
> 
> Which is the case for EVERY string method— we do need to get all wordy for 
> just these two.

Agreed! Let’s not remake the mistakes of the past in order to try to keep 
consistency.

/ Anders

_______________________________________________
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