<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"></div><div dir="ltr"><br></div><div dir="ltr"><br>On 1 Apr 2019, at 04:58, David Mertz <<a href="mailto:mertz@gnosis.cx">mertz@gnosis.cx</a>> wrote:<br><br></div><blockquote type="cite"><div dir="ltr"><div dir="auto"><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Lacking a good set of semantics for removing multiple affixes at once, we shouldn't rush to guess what people want. You don't even know what behaviour YOU want, let alone what the community as a whole needs.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">This is both dumb and dishonest. There are basically two choices, both completely clear. I think the more obvious one is to treat several prefixes or suffixes as substring class, much as .[rl]strip() does character class. </div></div></div></blockquote><br><div>Please don't say "dumb and dishonest". Especially not when you directly follow up by radically redefining what you want.  To get the same semantics as strip() it must follow that</div><div><br></div><div>"foofoobarfoo".without_suffix(("foo", "bar")) == ""</div><div><br></div><div>/ Anders</div></body></html>