
March 30, 2019
6:03 p.m.
Anders Hovmöller writes:
That isn't the proposal as it stands now. The consensus among those supporting the idea is "strip_prefix" and "strip_suffix". Let's debate that.
IMO, the "prefix" and "suffix" parts are necessary to fully clarify the intent (and do that well), so any of the verbs "strip", "trim", or "cut" work for me. I prefer Steven d'A's "cutprefix" and "cutsuffix" as the shortest, and by analogy to startswith/endswith, I'd drop the underscore (PEP 8 nothwithstanding).