MCPcopy Index your code
hub / github.com/dgrunwald/rust-cpython / PyList_Check

Function PyList_Check

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

Source from the content-addressed store, hash-verified

24
25#[inline(always)]
26pub unsafe fn PyList_Check(op: *mut PyObject) -> c_int {
27 PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_LIST_SUBCLASS)
28}
29
30#[inline(always)]
31pub unsafe fn PyList_CheckExact(op: *mut PyObject) -> c_int {

Callers 3

PySequence_Fast_GET_SIZEFunction · 0.70
PySequence_Fast_GET_ITEMFunction · 0.70
PySequence_Fast_ITEMSFunction · 0.70

Calls 2

PyType_FastSubclassFunction · 0.70
Py_TYPEFunction · 0.70

Tested by

no test coverage detected