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

Function PyTuple_CheckExact

python27-sys/src/tupleobject.rs:30–33  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

28
29#[inline(always)]
30pub unsafe fn PyTuple_CheckExact(op: *mut PyObject) -> c_int {
31 let u: *mut PyTypeObject = &mut PyTuple_Type;
32 (Py_TYPE(op) == u) as c_int
33}
34
35// Macro, trading safety for speed
36#[inline(always)]

Callers

nothing calls this directly

Calls 1

Py_TYPEFunction · 0.70

Tested by

no test coverage detected