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

Function PyList_CheckExact

python27-sys/src/listobject.rs:31–34  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

29
30#[inline(always)]
31pub unsafe fn PyList_CheckExact(op: *mut PyObject) -> c_int {
32 let u: *mut PyTypeObject = &mut PyList_Type;
33 (Py_TYPE(op) == u) as c_int
34}
35
36// Macro, trading safety for speed
37#[inline(always)]

Callers

nothing calls this directly

Calls 1

Py_TYPEFunction · 0.70

Tested by

no test coverage detected