On Wed, 25 Jun 2008 17:07:57 -0400 "Jay Parlar" <[EMAIL PROTECTED]> wrote:
> > What I want to know, is there any way to do this more efficiently? It > seems wasteful to have to convert the Python floats to C floats, store > them, and then convert them back to Python floats later again. Would > my life just be easier if I kept them as Python values? hmm.. maybe. You can also call the PyFloat_* functions yourself. http://docs.python.org/api/floatObjects.html > > 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() . Simon. _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
