
March 7, 2020
12:07 a.m.
On Fri, Mar 06, 2020 at 03:33:49PM -0800, Ethan Furman wrote:
I think we should have a `stripstr()` as an alias for strip, and a new `stripchr()`.
Shouldn't they be the other way around? `strip` removes chars from a set of chars; the proposed method will remove a prefix/suffix.
And I'm perfectly okay with bytes() not having those methods. ;-)
If heavy users of bytes want these methods, they can request them separately. There's no backwards compatibility requirement for new string methods to be automatically added to bytes. I guess the question now is do we need a PEP? -- Steven