Py_BuildValue for char **?

js ebgssth at gmail.com
Thu Jul 10 01:16:34 CEST 2008


Hi,

I'm writing a wrapper module of C API.
To make a C struct data avaiable to Python, I need to map C struct
into a PyObject.
I'm thinking that I use a tuple or dict to represent the struct
but a problem is one of the members of the struct is char **, which is
not supported by
Py_BuildValue.
Is there any idiomatic way of mapping char ** to Python?

Any suggestions, pointers would be appreciated.



More information about the Python-list mailing list