[EMAIL PROTECTED] wrote: > I am writing a C extension with python 2.3.5 and need constructs > similar to python > func(*args, **kwds) > What's a neat way to do that?
static PyObject*
myfunc(PyObject* self, PyObject* args, PyObject* kw)
{
... args is a tuple, kw is a dictionary ...
}
static PyMethodDef _functions[] = {
{"myfunc", (PyCFunction) myfunc, METH_VARARGS|METH_KEYWORDS},
{NULL, NULL}
};
</F>
--
http://mail.python.org/mailman/listinfo/python-list
