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

Function PyFile_CheckExact

python27-sys/src/fileobject.rs:16–18  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

14
15#[inline(always)]
16pub unsafe fn PyFile_CheckExact(op: *mut PyObject) -> c_int {
17 (Py_TYPE(op) == &mut PyFile_Type) as c_int
18}
19
20pub const PY_STDIOTEXTMODE: &str = "b";
21

Callers

nothing calls this directly

Calls 1

Py_TYPEFunction · 0.70

Tested by

no test coverage detected