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.

classification
Title: lstrip and strip not working as expected
Type: behavior Stage: resolved
Components: Versions: Python 3.9
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: jigar030
Priority: normal Keywords:

Created on 2022-02-23 17:38 by jigar030, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (1)
msg413831 - (view) Author: Jigar Gajjar (jigar030) Date: 2022-02-23 17:38
Code:

my_string = 'Auth:AWS'
print(my_string.lstrip('Auth:'))


Actual Output:

WS

Excepted Output:

AWS
History
Date User Action Args
2022-04-11 14:59:56adminsetgithub: 90993
2022-02-23 17:41:32jigar030setstatus: open -> closed
stage: resolved
2022-02-23 17:38:54jigar030create