<br clear="all">Hello all ,<br><br><br>I found a bug in python<br>I'm using python 2.4 with debian etch<br><br>string.lstrip("source/old_prog","source/") return "ld_prog" instead of "old_prog"
<br>So I wanted to create a patch in order to contribute to python, but I have some question :<br><br>- grep 'def lstrip' show that this function are defined in string.py<br>In this fill I read :<br><br># NOTE: Everything below here is deprecated. Use string methods instead.
<br># This stuff will go away in Python 3.0.<br><br>so lstrip is deprecated, and we are recommanded to use string method<br>But this is string.py which define string method, isn't it ?<br><br>- The function lstrip is :<br>
def lstrip(s, chars=None):<br> """lstrip(s [,chars]) -> string<br><br> Return a copy of the string s with leading whitespace removed.<br> If chars is given and not None, remove characters in chars instead.
<br><br> """<br> return s.lstrip(chars)<br><br>but where is defined this lstrip(chars) function ????<br>I can't found it with grep.<br><br>Sorry I'm a c programer, and I'm not used with python<br>for me, It's easier to debug c program than python :)
<br><br>