Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dgrunwald/rust-cpython
/ PyModule_CheckExact
Function
PyModule_CheckExact
python27-sys/src/moduleobject.rs:24–27 ·
view source on GitHub ↗
(op: *mut PyObject)
Source
from the content-addressed store, hash-verified
22
23
#[inline(always)]
24
pub unsafe fn PyModule_CheckExact(op: *mut PyObject) -> c_int {
25
let u: *mut PyTypeObject = &mut PyModule_Type;
26
(Py_TYPE(op) == u) as c_int
27
}
Callers
nothing calls this directly
Calls
1
Py_TYPE
Function · 0.70
Tested by
no test coverage detected