2 ms·
> Eventually, removeprefix() and removesuffix() seemed to gain the upper hand, which is what Sweeney eventually switched to. Great naming...missed their chance
by slightwinder 6y ago
> Eventually, removeprefix() and removesuffix() seemed to gain the upper hand, which is what Sweeney eventually switched to.
Great naming...missed their chance to make the functionality of strip/lstrip/rstrip more clear by name the new methods stripword/lstripword/rstripword. Which would also had the benefit of consistence.
- masklinn 6y agostripwords could (/would) imply that it acts on words. As in, whitespace separated things.