R
Roger Upole
I'm having a problem with an extension module using
PyArg_ParseTupleAndKeywords with 2.3.2.
Distilled down:
PyObject *wtf(PyObject *self, PyObject *args, PyObject *kwargs)
{
WCHAR *dummy1=NULL;
WCHAR *dummy2=NULL;
WCHAR *dummy3=NULL;
static char *dummyelements[]={"dummy1","dummy2","dummy3",0};
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|uuu:wtf", dummyelements,
&dummy1, &dummy2, &dummy3))
return NULL;
Py_INCREF(Py_None);
return Py_None;
}
Traceback (most recent call last):
File "<stdin>", line 1, in ?
Anybody seen this before, or is this a known problem, or am I just missing
something obvious ?
Any help greatly appreciated.
Roger
PyArg_ParseTupleAndKeywords with 2.3.2.
Distilled down:
PyObject *wtf(PyObject *self, PyObject *args, PyObject *kwargs)
{
WCHAR *dummy1=NULL;
WCHAR *dummy2=NULL;
WCHAR *dummy3=NULL;
static char *dummyelements[]={"dummy1","dummy2","dummy3",0};
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|uuu:wtf", dummyelements,
&dummy1, &dummy2, &dummy3))
return NULL;
Py_INCREF(Py_None);
return Py_None;
}
Traceback (most recent call last):
File "<stdin>", line 1, in ?
Anybody seen this before, or is this a known problem, or am I just missing
something obvious ?
Any help greatly appreciated.
Roger