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

Function PyModule_FromDefAndSpec

python3-sys/src/modsupport.rs:124–134  ·  view source on GitHub ↗
(def: *mut PyModuleDef, spec: *mut PyObject)

Source from the content-addressed store, hash-verified

122#[inline]
123#[cfg(Py_3_5)]
124pub unsafe fn PyModule_FromDefAndSpec(def: *mut PyModuleDef, spec: *mut PyObject) -> *mut PyObject {
125 PyModule_FromDefAndSpec2(
126 def,
127 spec,
128 if cfg!(Py_LIMITED_API) {
129 PYTHON_ABI_VERSION
130 } else {
131 PYTHON_API_VERSION
132 },
133 )
134}
135
136#[cfg(all(not(Py_LIMITED_API), not(Py_3_12)))]
137#[cfg_attr(windows, link(name = "pythonXY"))]

Callers

nothing calls this directly

Calls 1

PyModule_FromDefAndSpec2Function · 0.85

Tested by

no test coverage detected