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

Function newCode

code.go:51–53  ·  view source on GitHub ↗
(obj *C.PyObject)

Source from the content-addressed store, hash-verified

49var CodeType = (*Type)(unsafe.Pointer(&C.PyCode_Type))
50
51func newCode(obj *C.PyObject) *Code {
52 return (*Code)(unsafe.Pointer(obj))
53}
54
55func AsCode(o *Base) (v *Code, ok bool) {
56 if ok = C.codeCheck(o.c()) != 0; ok {

Callers 3

AsCodeFunction · 0.85
CompileFunction · 0.85
CompileFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…