コード例 #1
0
ファイル: eval.go プロジェクト: gbbr/textmate
func GetBuiltins() (Object, error) {
	ret := C.PyEval_GetBuiltins()
	if ret == nil {
		return nil, exception()
	}
	return newObject(ret), nil
}
コード例 #2
0
ファイル: code.go プロジェクト: MogeiWang/py
// Return a dictionary of the builtins in the current execution frame, or the interpreter of
// the thread state if no frame is currently executing.
//
// Return value: Borrowed reference.
func GetBuiltins() *Base {
	ret := C.PyEval_GetBuiltins()
	return newObject(ret)
}
コード例 #3
0
ファイル: utilities.go プロジェクト: hoangpq/go-python
// PyObject* PyEval_GetBuiltins()
// Return value: Borrowed reference.
// Return a dictionary of the builtins in the current execution frame, or the interpreter of the thread state if no frame is currently executing.
func PyEval_GetBuiltins() *PyObject {
	return togo(C.PyEval_GetBuiltins())
}
コード例 #4
0
ファイル: eval.go プロジェクト: ericsnowcurrently/qur-gopy
func GetBuiltins() (Object, error) {
	ret := C.PyEval_GetBuiltins()
	return obj2ObjErr(ret)
}