[Python-Dev] Q: why doesn't list.extend use the sequence interface?

Mark Hammond mhammond@skippinet.com.au
Sat, 17 Jun 2000 18:16:18 +1000


/F:
> just for the record, I just changed some generic sequence code
> to something like:
...
> so in other words, this construct is more than 4 times faster
> than plain use of PySequence_GetItem.

Good stuff!

> guess it's time to fix a couple of things in PIL...

Its a fair bit of code to duplicate everywhere you want the speed increase.
How can we add a similar scheme to the core, so the changes people need to
make are trivial (to the point where the change is zero!)?

Mark.