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

Function PyLong_Check

python3-sys/src/longobject.rs:17–19  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

15
16#[inline(always)]
17pub unsafe fn PyLong_Check(op: *mut PyObject) -> c_int {
18 PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_LONG_SUBCLASS)
19}
20
21#[inline(always)]
22pub unsafe fn PyLong_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