On 6/26/08, Simon Burton <[EMAIL PROTECTED]> wrote: > On Wed, 25 Jun 2008 17:07:57 -0400 > "Jay Parlar" <[EMAIL PROTECTED]> wrote:
> > I've just been having a hard time finding the best way to move Python > > lists back and forth with C, without doing full copies. > > > Yes, seems like it will always be expensive to build a python list of python > float's. > > Why not make your own list extension class that understands how to access > your circularqueue ? Then return this thing from .get() . So build an extension class that inherits from the base-type list? If so, won't I still be presented with roughly the same problem? Within that extension class, I'll have to populate the internal structure of the list with my float values. Or is it because I can use the Python/C API calls to populate, instead of calling the Python-visible append() that will give me the performance? Thanks so much, Jay P. _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
