Python extension module with variable number of arguments
问题 I am trying to figure out how in C extension modules to have a variable (and maybe) quite large number of arguments to a function. Reading about PyArg_ParseTuple it seems you have to know how many to accept, some mandatory and some optional but all with their own variable. I was hoping PyArg_UnpackTuple would be able to handle this but it seems to just give me bus errors when I try and use it in what appears to be the wrong way. As an example take the following python code that one might want