PyArg_ParseTupleAndKeywords problem

Travis Oliphant olipt at
Tue Nov 9 23:14:58 CET 1999

> So, I write the following C code:
> <snip>
> static PyObject *test_foo(PyObject *capi_self, PyObject *capi_args,
> PyObject *capi_keywds) {
>     PyObject *a_capi = NULL;
>     PyObject *b_capi = NULL;
>     static char *capi_kwlist[] = {"b",NULL};

When using PyArg_ParseTupleAndKeywords I've always had to specify a
keyword string for ALL of the arguments:

     static char *capi_kwlist[] = {"a","b"};

> So, clearly PyArg_ParseTupleAndKeywords command emulates only a subset
> of Python possibilities.


More information about the Python-list mailing list