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

Function PyRange_Check

python27-sys/src/rangeobject.rs:11–14  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

9
10#[inline(always)]
11pub unsafe fn PyRange_Check(op: *mut PyObject) -> c_int {
12 let u: *mut PyTypeObject = &mut PyRange_Type;
13 (Py_TYPE(op) == u) as c_int
14}

Callers

nothing calls this directly

Calls 1

Py_TYPEFunction · 0.70

Tested by

no test coverage detected