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

Function newModule

module.go:18–20  ·  view source on GitHub ↗
(obj *C.PyObject)

Source from the content-addressed store, hash-verified

16var ModuleType = (*Type)(unsafe.Pointer(&C.PyModule_Type))
17
18func newModule(obj *C.PyObject) *Module {
19 return (*Module)(unsafe.Pointer(obj))
20}
21
22func Import(name string) (*Module, error) {
23 s := C.CString(name)

Callers 4

ImportFunction · 0.85
ExecCodeModuleFunction · 0.85
NewModuleFunction · 0.85
AsModuleFunction · 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…