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 does not work properly
Type: Stage:
Components: Library (Lib) Versions: Python 2.4
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, rpache
Priority: normal Keywords:

Created on 2006-06-02 06:51 by rpache, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg28699 - (view) Author: rpache (rpache) Date: 2006-06-02 06:51
#!/usr/bin/python

line1='DOMAIN=Alpha'
line2='DOMAIN=Beta'

error=line1.lstrip('DOMAIN=')
ok=line2.lstrip('DOMAIN=')

print error
print ok



The code above prints only "lpha" instead of "Alpha"
msg28700 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-06-02 07:56
Logged In: YES 
user_id=849994

Please read the docs to (l|r|)strip -- then you'll see that
this is not a bug.
History
Date User Action Args
2022-04-11 14:56:17adminsetgithub: 43448
2006-06-02 06:51:57rpachecreate