// 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()) }
// 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) }
func GetLocals() (Object, error) { ret := C.PyEval_GetLocals() return obj2ObjErr(ret) }