Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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)]
35
pub 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_True
Function · 0.70
Tested by
no test coverage detected