コード例 #1
0
ファイル: utilities.go プロジェクト: hoangpq/go-python
// 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
ファイル: eval.go プロジェクト: ericsnowcurrently/qur-gopy
func GetLocals() (Object, error) {
	ret := C.PyEval_GetLocals()
	return obj2ObjErr(ret)
}