Closed bavovna closed 8 years ago
variadic C
functions can not be called from cgo
(that's actually one of the reasons why I started go-python/gopy)
that said, I could hardcode a maximum number of arguments (8?) one could call CallFunction
and CallMethod
and then call a custom C
non-variadic shim function (which would forward to PyObject_CallXYZ
)
how does that sound?
@sbinet thank you, 8 arguments are more than enough for me.
please give dcbfa20 a try and let me know.
actually, make that 7991d39
It worked with the basic use cases (primitive types as parameters). Will test some more complex cases (dictionaries, function pointers, etc.) a little bit later.