Py_BuildValue for char **?

"Martin v. Löwis" martin at v.loewis.de
Thu Jul 10 00:33:05 EDT 2008


> Is there any idiomatic way of mapping char ** to Python?

My recommendation is to not use Py_BuildValue. Instead, use
PyList_New, and then, in a loop, PyString_FromString/PyList_SetItem.

Regards,
Martin



More information about the Python-list mailing list