gopy

package
v0.0.0-...-d1c0bb1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2016 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(pyobj *python.PyObject) (b bool)

func Convert

func Convert(pyobj *python.PyObject, i interface{}) (err error)

func Import

func Import(module string, functions ...string) (funcs map[string]*PyFunction, err error)

func Init

func Init() (err error)

func ToPyObject

func ToPyObject(v reflect.Value) (pyobj *python.PyObject, err error)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL