[Python-ideas] New explicit methods to trim strings

Alex Grigoryev evrial at gmail.com
Sun Mar 31 04:58:45 EDT 2019


That's why strip_prefix(suffix) is a better name, can't double think.

On март 31 2019, at 11:56 утра, Steven D'Aprano <steve at pearwood.info> wrote:
> On Sun, Mar 31, 2019 at 07:35:22PM +1100, Steven D'Aprano wrote:
>
> > "musical".lcut(('al', 'ical'))
> Oops, typo, I was thinking rcut and wrote lcut :-(
> --
> Steven
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20190331/586aca76/attachment.html>


More information about the Python-ideas mailing list