Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dgrunwald/rust-cpython
/ PySlice_Check
Function
PySlice_Check
python27-sys/src/sliceobject.rs:37–39 ·
view source on GitHub ↗
(op: *mut PyObject)
Source
from the content-addressed store, hash-verified
35
36
#[inline(always)]
37
pub unsafe fn PySlice_Check(op: *mut PyObject) -> c_int {
38
(Py_TYPE(op) == &mut PySlice_Type) as c_int
39
}
40
41
#[cfg_attr(windows, link(name =
"pythonXY"
))]
42
extern
"C"
{
Callers
nothing calls this directly
Calls
1
Py_TYPE
Function · 0.70
Tested by
no test coverage detected