[Python-ideas] New explicit methods to trim strings
boxed at killingar.net
Sun Mar 31 15:38:59 EDT 2019
> On 31 Mar 2019, at 21:32, Christopher Barker <pythonchb at gmail.com> wrote:
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas