john.thai at dspfactory.com
Wed Jun 13 18:30:04 CEST 2001
If I want to extract a list by using PyArg_ParseTuple with the format
specifier "o!" , what do I pass in for the "address of a Python type
object", as stated below?
"O!" (object) [typeobject, PyObject *]
Store a Python object in a C object pointer. This is similar to "O", but
takes two C arguments: the first is the address of a Python type object, the
second is the address of the C variable (of type PyObject *) into which the
object pointer is stored. If the Python object does not have the required
type, TypeError is raised.
More information about the Python-list