Re: strings getting unnecessarily cut in lstrip

2010-11-21 Thread Steve Holden
On 11/21/2010 10:12 PM, Maxim Mercury wrote: > I was using the lstrip to trim the left occurance of a string, and it > didnt seem to work for some cases. but when i investigated there does > seem to be an issue with some combination of strings > here is one case > p1 = "abcd" > p2 = 'def'

strings getting unnecessarily cut in lstrip

2010-11-21 Thread Maxim Mercury
I was using the lstrip to trim the left occurance of a string, and it didnt seem to work for some cases. but when i investigated there does seem to be an issue with some combination of strings here is one case p1 = "abcd" p2 = 'def'# $abc sym = '_' str1 = p1 + sym + p2 str1