in plain python (2.7) one can write variadic function like so:
>> def myfunc(a, b, *args):
print a,b,args
>> params = (1,2,"3", "abc")
>> myfunc(*params)
# Will print "1 2 ('3', 'abc')"
>> myfunc(params)
# Will fail with 'myfunc() takes at least 2 arguments (1 given)'
When writing a Python extension in C, I can pass a tuple of PyObjects (like params in the example) easily, but how can I pass params with the *
-operator with function such as PyObject_CallMethodObjArgs
and the likes.