Skip to content
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
Open
@elbaro

Description

@elbaro

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions