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

Function PyList_Check

python3-sys/src/listobject.rs:14–16  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

12
13#[inline(always)]
14pub unsafe fn PyList_Check(op: *mut PyObject) -> c_int {
15 PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_LIST_SUBCLASS)
16}
17
18#[inline(always)]
19pub unsafe fn PyList_CheckExact(op: *mut PyObject) -> c_int {

Callers

nothing calls this directly

Calls 2

PyType_FastSubclassFunction · 0.70
Py_TYPEFunction · 0.70

Tested by

no test coverage detected