PyArg_ParseTuple
Alex
new_name at mit.edu
Wed Jun 13 13:00:10 EDT 2001
> what do I pass in for the "address of a Python type object", as stated
> below?
Pass a reference to the type. So, for instance, if it's to be a list,
you do something like this:
if (!PyArg_ParseTuple (args, "sO!", &sequence, &PyList_Type, &offsets))
The different type arguments are in the C API manual. E.g., PyList_Type
is in http://python.org/doc/current/api/listObjects.html
HTH
Alex.
More information about the Python-list
mailing list