Esempio n. 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())
}
Esempio n. 2
0
File: code.go Progetto: 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)
}
Esempio n. 3
0
func GetLocals() (Object, error) {
	ret := C.PyEval_GetLocals()
	return obj2ObjErr(ret)
}