Author Alex Grigoryev
Recipients Alex Grigoryev
Date 2019-03-23.20:05:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1553371518.15.0.327433440599.issue36410@roundup.psfhosted.org>
In-reply-to
Content
These methods have confusing implicit behavior. I propose to make it explicit, either strip the exact sequence or chars or leave the string as is.

In [1]: 'mailto:maria@gmail.com'.lstrip('mailto')
Out[1]: ':maria@gmail.com'

In [2]: 'mailto:maria@gmail.com'.lstrip('mailto:')
Out[2]: 'ria@gmail.com'

In [3]: 'mailto:maria@gmail.com'.lstrip('ailto:')
Out[3]: 'mailto:maria@gmail.com'
History
Date User Action Args
2019-03-23 20:05:18Alex Grigoryevsetrecipients: + Alex Grigoryev
2019-03-23 20:05:18Alex Grigoryevsetmessageid: <1553371518.15.0.327433440599.issue36410@roundup.psfhosted.org>
2019-03-23 20:05:18Alex Grigoryevlinkissue36410 messages
2019-03-23 20:05:17Alex Grigoryevcreate