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

Function PyDict_CheckExact

python27-sys/src/dictobject.rs:28–31  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

26
27#[inline(always)]
28pub unsafe fn PyDict_CheckExact(op: *mut PyObject) -> c_int {
29 let u: *mut PyTypeObject = &mut PyDict_Type;
30 (Py_TYPE(op) == u) as c_int
31}
32
33#[cfg_attr(windows, link(name = "pythonXY"))]
34extern "C" {

Callers

nothing calls this directly

Calls 1

Py_TYPEFunction · 0.70

Tested by

no test coverage detected