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

Function PyModule_Create

python3-sys/src/modsupport.rs:111–120  ·  view source on GitHub ↗
(module: *mut PyModuleDef)

Source from the content-addressed store, hash-verified

109
110#[inline]
111pub unsafe fn PyModule_Create(module: *mut PyModuleDef) -> *mut PyObject {
112 PyModule_Create2(
113 module,
114 if cfg!(Py_LIMITED_API) {
115 PYTHON_ABI_VERSION
116 } else {
117 PYTHON_API_VERSION
118 },
119 )
120}
121
122#[inline]
123#[cfg(Py_3_5)]

Callers 1

Calls 1

PyModule_Create2Function · 0.85

Tested by

no test coverage detected