[Python-Dev] Why .index() is not a method of all sequence types ?

2008-03-12 Thread Joost Behrends
Hello, hopefully this mailing list is the right address for the following. Since there is a huge gap in performance between tuple(cur.execute(...)) and list(cur.execute(...)) - i saw a factor in the magnitude of 50 once - the first has always to be chosen when sufficient. Even if that difference

Re: [Python-Dev] Why .index() is not a method of all sequence types ?

2008-03-12 Thread Terry Reedy
"Joost Behrends" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | With such a tuple tp i tried 'ix = tp.index(...)' recently and was | astonished to learn, that this doesn't work. Since we have '... in tp' | for me it seems, that it should make very little difference in | the interpr

Re: [Python-Dev] Why .index() is not a method of all sequence types ?

2008-03-13 Thread Nick Coghlan
Terry Reedy wrote: > "Joost Behrends" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > | With such a tuple tp i tried 'ix = tp.index(...)' recently and was > | astonished to learn, that this doesn't work. Since we have '... in tp' > | for me it seems, that it should make very li