Documentation ¶
Index ¶
- func Bool(pyobj *python.PyObject) (b bool)
- func Convert(pyobj *python.PyObject, i interface{}) (err error)
- func Import(module string, functions ...string) (funcs map[string]*PyFunction, err error)
- func Init() (err error)
- func ToPyObject(v reflect.Value) (pyobj *python.PyObject, err error)
- type PyFunction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Import ¶
func Import(module string, functions ...string) (funcs map[string]*PyFunction, err error)
func ToPyObject ¶
Types ¶
type PyFunction ¶
type PyFunction struct {
*python.PyObject
}
func (*PyFunction) Call ¶
func (f *PyFunction) Call(args ...interface{}) (r *python.PyObject, err error)
func (*PyFunction) CallWithTimeOut ¶
func (f *PyFunction) CallWithTimeOut(timeOut time.Duration, args ...interface{}) (r *python.PyObject, err error)
Click to show internal directories.
Click to hide internal directories.