This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Alex Grigoryev
Recipients Alex Grigoryev, xtreak
Date 2019-03-23.20:56:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In-reply-to <>
Content (
Here should be clarified better. Yes I think API for explicit behavior should be discussed, because the other way is this
In [1]: "".split("mailto:")[-1]
Out[1]: ''
In [2]: "maria@gmail.commailto:".split("mailto:")[-1]
Out[2]: ''
On март 23 2019, at 10:39 вечера, Karthikeyan Singaravelan <> wrote:
> Karthikeyan Singaravelan <> added the comment:
> > Return a copy of the string with leading characters removed. The chars argument is a string specifying the set of characters to be removed. If omitted or None, the chars argument defaults to removing whitespace. The chars argument is not a prefix; rather, all combinations of its values are stripped:
> The last sentence talks about the report. In the given examples it strips all the given characters in chars from left until it finds a character that is not found as part of the given chars argument.
> In [2]: ''.lstrip('mailto:') # Stops at 'r' that doesn't need to be stripped
> Out[2]: ''
> In [3]: ''.lstrip('ailto:') # 'm' is the first character and is not found in chars 'ailto:'
> Out[3]: ''
> Changing this would break a lot of old code and adding an API for two different behaviors would require a larger discussion. Perhaps did you find any part of docs that you would like to improve to clarify this better?
> ----------
> nosy: +xtreak
> versions: -Python 3.5, Python 3.6, Python 3.9
> _______________________________________
> Python tracker <>
> <>
> _______________________________________
Date User Action Args
2019-03-23 20:56:05Alex Grigoryevsetrecipients: + Alex Grigoryev, xtreak
2019-03-23 20:56:05Alex Grigoryevlinkissue36410 messages
2019-03-23 20:56:05Alex Grigoryevcreate