[ python-Bugs-1499316 ] lstrip does not work properly

SourceForge.net noreply at sourceforge.net
Fri Jun 2 08:51:58 CEST 2006


Bugs item #1499316, was opened at 2006-06-02 06:51
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1499316&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: rpache (rpache)
Assigned to: Nobody/Anonymous (nobody)
Summary: lstrip does not work properly

Initial Comment:
#!/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"

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1499316&group_id=5470


More information about the Python-bugs-list mailing list