This repository was archived by the owner on Jul 24, 2023. It is now read-only.
This repository was archived by the owner on Jul 24, 2023. It is now read-only.
Implement Py_BuildValue #59
Open
Description
Py_BuildValue
is not implemented.
func Py_BuildValue(format string, args ...interface{}) *PyObject {
return nil
}
Example:
f(7,8,9) =
values := python.PyTuple_New(3)
python.PyTuple_SET_ITEM(values, 0, python.PyInt_FromLong(7))
python.PyTuple_SET_ITEM(values, 1, python.PyInt_FromLong(8))
python.PyTuple_SET_ITEM(values, 2, python.PyInt_FromLong(9))
f.CallObject(values)
should be possible with
values := python.Py_BuildValue("(i,i,i)", 7, 8, 9)
f.CallObject(values)
Metadata
Metadata
Assignees
Labels
No labels