Ejemplo n.º 1
0
func GetGlobals() (Object, error) {
	ret := C.PyEval_GetGlobals()
	if ret == nil {
		return nil, exception()
	}
	return newObject(ret), nil
}
Ejemplo n.º 2
0
Archivo: code.go Proyecto: MogeiWang/py
// Return a dictionary of the local variables in the current execution frame,
// or NULL if no frame is currently executing.
//
// Return value: Borrowed reference
func GetGlobals() *Base {
	ret := C.PyEval_GetGlobals()
	return newObject(ret)
}
Ejemplo n.º 3
0
// PyObject* PyEval_GetGlobals()
// Return value: Borrowed reference.
// Return a dictionary of the global variables in the current execution frame, or NULL if no frame is currently executing.
func PyEval_GetGlobals() *PyObject {
	return togo(C.PyEval_GetGlobals())
}
Ejemplo n.º 4
0
func GetGlobals() (Object, error) {
	ret := C.PyEval_GetGlobals()
	return obj2ObjErr(ret)
}