PyArg_ParseTupleAndKeywords problem

Travis Oliphant olipt at mayo.edu
Tue Nov 9 17:14:58 EST 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.


Travis






More information about the Python-list mailing list