[Python-ideas] New explicit methods to trim strings

Christopher Barker pythonchb at gmail.com
Sun Mar 31 15:32:25 EDT 2019

> 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.

Christopher Barker, PhD

Python Language Consulting
  - Teaching
  - Scientific Software Development
  - Desktop GUI and Web Development
  - wxPython, numpy, scipy, Cython
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20190331/13da0c57/attachment.html>

More information about the Python-ideas mailing list