Documentation ¶
Index ¶
- func ObjectsToRefs(objects ...PyObject) []common.PyObjectRef
- type PyObject
- func (p PyObject) Bool() (bool, error)
- func (p PyObject) Float() (float64, error)
- func (p PyObject) Fn() (common.PyCallable, error)
- func (p PyObject) Get(name string) PyObject
- func (p PyObject) Int() (int, error)
- func (p PyObject) Ref() common.PyObjectRef
- func (p PyObject) Repr() string
- func (p PyObject) Str() (string, error)
- func (p PyObject) ToStr() string
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 RefsToObjects ¶
func RefsToObjects(refs ...common.PyObjectRef) []PyObject
func TupleFromSlice ¶
func (PyObject) Ref ¶
func (p PyObject) Ref() common.PyObjectRef
Click to show internal directories.
Click to hide internal directories.