[Python-Dev] Re: PEP 616 -- String methods to remove prefixes and suffixes

2020年3月27日 07:36:02 -0700

On Sun, Mar 22, 2020 at 05:00:10AM -0000, Dennis Sweeney wrote:
> I like "removeprefix" and "removesuffix". My only concern before had
> been length, but three more characters than "cut***fix" is a small
> price to pay for clarity.
I personally rely on auto-complete of my editor while writing. So,
thinking about these these methods in "correct" terms might be more
important to me that the length.
+1 for removeprefix and removesuffix.
Thanks,
Senthil
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/L4NKSHGHVPLJ4PLBED5M6CCT5UX2BH5K/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to