Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dgrunwald/rust-cpython
/ PyCode_Check
Function
PyCode_Check
python27-sys/src/code.rs:99–101 ·
view source on GitHub ↗
(op: *mut PyObject)
Source
from the content-addressed store, hash-verified
97
98
#[inline(always)]
99
pub unsafe fn PyCode_Check(op: *mut PyObject) -> c_int {
100
(Py_TYPE(op) == &mut PyCode_Type) as c_int
101
}
102
103
#[inline]
104
pub unsafe fn PyCode_GetNumFree(op: *mut PyCodeObject) -> Py_ssize_t {
Callers
nothing calls this directly
Calls
1
Py_TYPE
Function · 0.70
Tested by
no test coverage detected