[issue36410] Proposal to make strip/lstrip/rstrip more explicit

Raymond Hettinger report at bugs.python.org
Sat Mar 23 17:14:36 EDT 2019


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

Generally, we don't make changes that would break existing code relying on the documented and tested behavior.

If you would like to propose a new method, the python-ideas mailing list would be a good place to start.

>>> s[len('mailto:'):] if s.startswith('mailto:') else s
'maria at gmail.com'

----------
nosy: +rhettinger
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
type: behavior -> enhancement
versions:  -Python 2.7, Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36410>
_______________________________________


More information about the Python-bugs-list mailing list