You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
lstrip remove extra characters in the presence of a matching number #81295
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2019-05-31.12:43:05.660>created_at=<Date2019-05-31.12:40:18.278>labels= ['type-bug', 'invalid']
title='lstrip remove extra characters in the presence of a matching number'updated_at=<Date2019-05-31.12:43:05.657>user='https://bugs.python.org/AkileshK'
Activity
AkileshK commentedon May 31, 2019
When the argument to lstrip / strip has a number and it matches the string it begins to act different.
tiran commentedon May 31, 2019
It's not a bug. strip() does not work like you think. Please read the documentation https://docs.python.org/3/library/stdtypes.html?highlight=strip#str.strip