<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(&quot;source/old_prog&quot;,&quot;source/&quot;) return &quot;ld_prog&quot; instead of &quot;old_prog&quot;
<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.&nbsp; 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>
&nbsp; def lstrip(s, chars=None):<br>&nbsp;&nbsp;&nbsp; &quot;&quot;&quot;lstrip(s [,chars]) -&gt; string<br><br>&nbsp;&nbsp;&nbsp; Return a copy of the string s with leading whitespace removed.<br>&nbsp;&nbsp;&nbsp; If chars is given and not None, remove characters in chars instead.
<br><br>&nbsp;&nbsp;&nbsp; &quot;&quot;&quot;<br>&nbsp;&nbsp;&nbsp; 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>