[Python-Dev] correction of a bug (original) (raw)

draconux draconux at gmail.com
Sat May 13 17:30:40 CEST 2006


Hello all ,

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" So I wanted to create a patch in order to contribute to python, but I have some question :

NOTE: Everything below here is deprecated. Use string methods instead.

This stuff will go away in Python 3.0.

so lstrip is deprecated, and we are recommanded to use string method But this is string.py which define string method, isn't it ?

but where is defined this lstrip(chars) function ???? I can't found it with grep.

Sorry I'm a c programer, and I'm not used with python for me, It's easier to debug c program than python :) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/python-dev/attachments/20060513/09f2cc20/attachment.htm



More information about the Python-Dev mailing list