I’ve got an interface such as:
int func(int array[]);
I must call it from Python via SWIG. The binding code is already compiled and I do not want to edit, compile or otherwise mess with SWIG, but the overload for func(int[])
seems available — SWIG prints it in the exception log.
How can I call this? It should be pretty standard, but neither func((1,2,3))
nor func([1,2,3])
works and there doesn’t seem to be any obvious way to do it.