MCPcopy Create free account
hub / github.com/goplus/py / Run

Function Run

code.go:112–119  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------

(text string)

Source from the content-addressed store, hash-verified

110// ------------------------------------------------------------------------------------------
111
112func Run(text string) error {
113
114 t := C.CString(text)
115 defer C.free(unsafe.Pointer(t))
116
117 ret := C.PyRun_SimpleStringFlags(t, nil)
118 return int2Err(ret)
119}
120
121// Return a dictionary of the builtins in the current execution frame, or the interpreter of
122// the thread state if no frame is currently executing.

Callers

nothing calls this directly

Calls 1

int2ErrFunction · 0.85

Tested by

no test coverage detected