示例#1
0
// PyObject* PyEval_GetLocals()
// Return value: Borrowed reference.
// Return a dictionary of the local variables in the current execution frame, or NULL if no frame is currently executing.
func PyEval_GetLocals() *PyObject {
	return togo(C.PyEval_GetLocals())
}
示例#2
0
文件: code.go 项目: MogeiWang/py
// Return a dictionary of the global variables in the current execution frame,
// or NULL if no frame is currently executing.
//
// Return value: Borrowed reference
func GetLocals() *Base {
	ret := C.PyEval_GetLocals()
	return newObject(ret)
}
示例#3
0
func GetLocals() (Object, error) {
	ret := C.PyEval_GetLocals()
	return obj2ObjErr(ret)
}