[issue12444] accept sets or collections for str.strip/lstrip/rstrip

Raymond Hettinger report at bugs.python.org
Wed Jun 29 23:46:41 CEST 2011


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

-1 on complicating the API.  The purported problem isn't pervasive enough to warrant a change (I frequently teach python classes and do code reviews and rarely encounter this issue).  Also, the proposed change isn't going to help the people who are setting out to remove a ".html" suffix and are presuming that rstrip is the way to do it.  Those folks have already made an unfounded assumption this proposal does nothing to invalidate their experiment.  AFAICT, this proposal would only benefit someone who already knows that strip characters are accepted in all combinations (as clearly documented).

----------
nosy: +rhettinger

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12444>
_______________________________________


More information about the Python-bugs-list mailing list