Okay if that is the case, why do we need it? By having int a = 65, b = 66 , why should we also have *kwlist[]?
static PyObject* foo(PyObject *self, PyObject *args, PyObject *kwrds) { int a=65, b=66; char *kwlist[] = {"a", "b", NULL}; if (!PyArg_ParseTupleAndKeywords(args, kwrds, "|CC", kwlist, &a, &b)) return NULL; return Py_BuildValue("(CC)", a, b); } On Fri, Dec 18, 2009 at 9:31 PM, casevh <cas...@gmail.com> wrote: > On Dec 18, 10:28 am, Joachim Dahl <dahl.joac...@gmail.com> wrote: > > My mistake seems to be that I declared > > > > char a, b; > > > > instead of > > > > int a, b; > > > > Thank you for sorting this out. > > > > Joachim > > I think you need to initialize them, too. > -- > http://mail.python.org/mailman/listinfo/python-list >
-- http://mail.python.org/mailman/listinfo/python-list