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 Akilesh K
Recipients Akilesh K
Date 2019-05-31.12:40:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1559306418.29.0.0735578073723.issue37114@roundup.psfhosted.org>
In-reply-to
Content
When the argument to lstrip / strip has a number and it matches the string it begins to act different. 

>>> text = "apiv1appliance"
>>> text.strip("apiv1")
'liance'
>>> text.strip("apiv2")
'1appliance'
>>> text.strip("a")
'piv1appliance'
>>> text.strip("ap")
'iv1appliance'
>>> text.strip("api")
'v1appliance'
>>> text.strip("apiv")
'1appliance'
>>> text.strip("apiv1")
'liance'
>>> text.strip("apiv2")
'1appliance'
History
Date User Action Args
2019-05-31 12:40:18Akilesh Ksetrecipients: + Akilesh K
2019-05-31 12:40:18Akilesh Ksetmessageid: <1559306418.29.0.0735578073723.issue37114@roundup.psfhosted.org>
2019-05-31 12:40:18Akilesh Klinkissue37114 messages
2019-05-31 12:40:18Akilesh Kcreate