Pass a tuple (or list) to a C wrapper function
Java and Swing
codecraig at gmail.com
Wed Oct 12 16:06:00 EDT 2005
I have a C function which takes an array of long values..
I understand that I can pass a tuple to a C wrapper function and in the
C wrapper function have..
int ok = PyArg_ParseTuple(args, "s(ll)", &a, &b, &c);
..that's great if my tuple only contained two longs..but what if it
contained 50
would I have to do..
int ok = PyArg_ParseTuple(args, "s(llllllllllllllllll....ll)", &a, &b,
&c, &d...) ??
how can I handle this?
More information about the Python-list
mailing list