[Pyrex] [Cython-dev] Optimizing use of lists

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Nov 28 01:02:16 CET 2007


I wrote:

> Something similar will also have to be done for type
> slots, so that some_list[i] can be translated into
> PyList_GetItem, etc.

On second thoughts, I'm not sure this is really the best
thing to do in the case of typeslot methods. It would mean
that subclasses of list that overrode the typeslot would
not have the overridden method called in some circumstances,
which could lead to surprising results.

--
Greg



More information about the Pyrex mailing list