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

[Python-Dev] correction of a bug

2006-05-14 Thread draconux
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

Re: [Python-Dev] Py_ssize_t formatting

2006-05-14 Thread Thomas Wouters
On 5/14/06, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: Georg Brandl wrote:>> Right. At least, not with changing structmember.[ch].>> Did you mean "without"?Oops, right.> Can I submit a patch?I personally don't mind having more types added to structmember, so I'm +0 on adding Py_ssize_t to the lis