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

2020年3月21日 06:19:08 -0700

On 2020年3月20日 20:49:12 -0000
"Dennis Sweeney" <[email protected]> wrote:
> exactly same way (as a character set) in each case. Looking at how
> the argument is used, I'd argue that ``lstrip``/``rstrip``/``strip``
> are much more similar to each other than they are to the proposed
> methods
Correct, but I don't like the word "cut" because it suggests that
something is cut into pieces which can be used later separately.
I'd propose to use "trim" instead of "cut" because it makes clear that
something is cut off and discarded, and it is clearly different from
"strip".
_______________________________________________
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/ZPL56AAEOQ7P7V4LMMFPMWXFPNJ6HFAR/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to