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

Function PyBytes_Check

python3-sys/src/bytesobject.rs:13–15  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

11
12#[inline(always)]
13pub unsafe fn PyBytes_Check(op: *mut PyObject) -> c_int {
14 PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_BYTES_SUBCLASS)
15}
16
17#[inline(always)]
18pub unsafe fn PyBytes_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