I'm struggling with PyObject_CallMethod
trying to send unsigned char *
to python script, but it gives me error calling the method on the python side. I've tried s,s#,s*,y
and B
formats but with no luck. which format should I use?
Here's the reference I'm looking at https://docs.python.org/3/c-api/arg.html#c.Py_BuildValue