PyArg_ParseTuple
John
john.thai at dspfactory.com
Wed Jun 13 12:30:04 EDT 2001
Hi,
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.
Thanks,
John
More information about the Python-list
mailing list