Message344070
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' |
|
Date |
User |
Action |
Args |
2019-05-31 12:40:18 | Akilesh K | set | recipients:
+ Akilesh K |
2019-05-31 12:40:18 | Akilesh K | set | messageid: <1559306418.29.0.0735578073723.issue37114@roundup.psfhosted.org> |
2019-05-31 12:40:18 | Akilesh K | link | issue37114 messages |
2019-05-31 12:40:18 | Akilesh K | create | |
|