cpy3/helper.go

16 lines
285 B
Go

package python3
//go:generate go run script/variadic.go
//#include "Python.h"
import "C"
//togo converts a *C.PyObject to a *PyObject
func togo(cobject *C.PyObject) *PyObject {
return (*PyObject)(cobject)
}
func toc(object *PyObject) *C.PyObject {
return (*C.PyObject)(object)
}