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

Function Py_IsTrue

python3-sys/src/boolobject.rs:35–37  ·  view source on GitHub ↗
(obj: *mut PyObject)

Source from the content-addressed store, hash-verified

33
34#[inline(always)]
35pub unsafe fn Py_IsTrue(obj: *mut PyObject) -> c_int {
36 (obj == Py_True()) as c_int
37}

Callers

nothing calls this directly

Calls 1

Py_TrueFunction · 0.70

Tested by

no test coverage detected