objects

package
v0.0.0-...-277e6e9 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ObjectsToRefs

func ObjectsToRefs(objects ...PyObject) []common.PyObjectRef

Types

type PyObject

type PyObject struct {
	// contains filtered or unexported fields
}

func ListFromSlice

func ListFromSlice(elements []PyObject) PyObject

func RefsToObjects

func RefsToObjects(refs ...common.PyObjectRef) []PyObject

func TupleFromSlice

func TupleFromSlice(elements []PyObject) PyObject

func Wrap

func Wrap[T ~unsafe.Pointer](ref T) PyObject

func (PyObject) Bool

func (p PyObject) Bool() (bool, error)

func (PyObject) Float

func (p PyObject) Float() (float64, error)

func (PyObject) Fn

func (p PyObject) Fn() (common.PyCallable, error)

func (PyObject) Get

func (p PyObject) Get(name string) PyObject

func (PyObject) Int

func (p PyObject) Int() (int, error)

func (PyObject) Ref

func (p PyObject) Ref() common.PyObjectRef

func (PyObject) Repr

func (p PyObject) Repr() string

func (PyObject) Str

func (p PyObject) Str() (string, error)

func (PyObject) ToStr

func (p PyObject) ToStr() string

Jump to

Keyboard shortcuts

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