Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dgrunwald/rust-cpython
/ PyBytes_CheckExact
Function
PyBytes_CheckExact
python3-sys/src/bytesobject.rs:18–20 ·
view source on GitHub ↗
(op: *mut PyObject)
Source
from the content-addressed store, hash-verified
16
17
#[inline(always)]
18
pub unsafe fn PyBytes_CheckExact(op: *mut PyObject) -> c_int {
19
(Py_TYPE(op) == &mut PyBytes_Type) as c_int
20
}
21
22
#[cfg_attr(windows, link(name =
"pythonXY"
))]
23
extern
"C"
{
Callers
nothing calls this directly
Calls
1
Py_TYPE
Function · 0.70
Tested by
no test coverage detected