MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / Py_InitModule

Function Py_InitModule

python27-sys/src/modsupport.rs:125–133  ·  view source on GitHub ↗
(name: *const c_char, methods: *mut PyMethodDef)

Source from the content-addressed store, hash-verified

123
124#[inline(always)]
125pub unsafe fn Py_InitModule(name: *const c_char, methods: *mut PyMethodDef) -> *mut PyObject {
126 Py_InitModule4(
127 name,
128 methods,
129 ptr::null(),
130 ptr::null_mut(),
131 PYTHON_API_VERSION,
132 )
133}
134
135#[inline(always)]
136pub unsafe fn Py_InitModule3(

Callers 1

Calls 1

Py_InitModule4Function · 0.85

Tested by

no test coverage detected