passing varargs to c

Bryan belred1 at yahoo.com
Mon Mar 24 18:41:41 CET 2003


there is a c api that have to call and it's prototype is something
like this:

void _foo(int, const char*, va_list);

where the va_list could be any number of arbitrary values similar to a
printf function.

in a python extention call:

PyObject *Foo(PyObject *self, PyObject *args)

there are some really ugly ways to pull the args apart with a million
line case statement and build up a va_list.  i'm just curious if there
is a techinque or some python method that could help me here.

thanks,

bryan




More information about the Python-list mailing list