[ python-Bugs-1499049 ] lstrip does not work properly
SourceForge.net
noreply at sourceforge.net
Thu Jun 1 20:57:31 CEST 2006
Bugs item #1499049, was opened at 2006-06-01 18:57
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=1499049&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=1499049&group_id=5470
More information about the Python-bugs-list
mailing list