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