Re: [Python-Dev] correction of a bug

2006-05-14 Thread Edward Loper
draconux wrote: > > Hello all , > string.lstrip("source/old_prog","source/") return "ld_prog" instead of > "old_prog" You are misunderstanding what the second argument to lstrip does. It is interpreted as a list of characters; and lstrip will remove the maximal prefix of the string that consi

Re: [Python-Dev] correction of a bug

2006-05-14 Thread Heiko Wundram
Am Samstag 13 Mai 2006 17:30 schrieb draconux: > I found a bug in python > I'm using python 2.4 with debian etch > > string.lstrip("source/old_prog","source/") return "ld_prog" instead of > "old_prog" This is not a bug, but rather expected behaviour. Read the specification of lstrip() correctly.

Re: [Python-Dev] correction of a bug

2006-05-14 Thread skip
draconux> I found a bug in python I'm using python 2.4 with debian etch draconux> string.lstrip("source/old_prog","source/") return "ld_prog" draconux> instead of "old_prog" The above is the same as "source/old_prog".lstrip("source/") String methods are defined in the Objects/s