Python IS slow ! [was] Re: Python too slow for real world
Greg Ewing
greg.ewing at compaq.com
Wed May 5 18:10:43 EDT 1999
Guido van Rossum wrote:
>
> Ever since 1.4 it doesn't do that any more (except when using apply()).
Ah, that's good to know.
However, when calling a C function, it still
creates a tuple of args, doesn't it? That's
always struck me as a bit inefficient - sort
of niggles at me every time I write an
extension.
Maybe there could be an alternative interface
for C functions:
PyObject *myFunc(int argc, PyObject *argv[]);
for the case where the function has a fixed
arg list. Plus a PyArg_ParseArgv function or
something to go with it.
Greg
More information about the Python-list
mailing list