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
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.
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
Hello all ,I found a bug in pythonI'm using python 2.4 with debian etchstring.lstrip("source/old_prog","source/") return "ld_prog" instead of "old_prog"
So I wanted to create a patch in order to contribute to python, but I have some question :- grep 'def lstrip' show that this function are defined