Bug in string.lstrip?
Brian
brian at nospam.com
Mon Aug 23 12:08:37 EDT 2004
Hello - has anyone else had trouble with string.lstrip stripping too
much? Here's what I get (Python 2.3.4):
>>> import string
>>> string.lstrip("test/one/two/a.b.c", "test/one/")
'wo/a.b.c'
>>> string.lstrip("test/one/two/a.b.c", "test/one")
'wo/a.b.c'
>>> string.lstrip("test/one/two/a.b.c", "test/one/tw")
'a.b.c'
>>>
Similar things happened with the strip() string method. Am I missing
something, or should I file a bug report?
Thanks,
Brian
More information about the Python-list
mailing list