string.lstrip stripping too much?
joram gemma
joram.gemma at pandora.be
Sun May 15 09:24:25 EDT 2005
Hello,
on windows python 2.4.1 I have the following problem
>>> s = 'D:\\music\\D\\Daniel Lanois\\For the beauty of Wynona'
>>> print s
D:\music\D\Daniel Lanois\For the beauty of Wynona
>>> t = 'D:\\music\\D\\'
>>> print t
D:\music\D\
>>> s.lstrip(t)
'aniel Lanois\\For the beauty of Wynona'
>>>
why does lstrip strip the D of Daniel Lanois also?
thanks in advance
joram
More information about the Python-list
mailing list