Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/dgrunwald/rust-cpython
/ Py_IsNone
Function
Py_IsNone
python3-sys/src/object.rs:959–961 ·
view source on GitHub ↗
(x: *mut PyObject)
Source
from the content-addressed store, hash-verified
957
958
#[inline(always)]
959
pub unsafe fn Py_IsNone(x: *mut PyObject) -> c_int {
960
(x == Py_None()) as c_int
961
}
962
963
#[inline(always)]
964
pub unsafe fn Py_NotImplemented() -> *mut PyObject {
Callers
nothing calls this directly
Calls
1
Py_None
Function · 0.70
Tested by
no test coverage detected