Return value: New reference.
(globals, locals *Base)
| 92 | |
| 93 | // Return value: New reference. |
| 94 | func (code *Code) Eval(globals, locals *Base) (*Base, error) { |
| 95 | pyCode := (*C.PyCodeObject)(unsafe.Pointer(code)) |
| 96 | ret := C.PyEval_EvalCode(pyCode, globals.c(), locals.c()) |
| 97 | return obj2ObjErr(ret) |
| 98 | } |
| 99 | |
| 100 | func (code *Code) Run(globals, locals *Base) error { |
| 101 | pyCode := (*C.PyCodeObject)(unsafe.Pointer(code)) |