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

Function PyMethod_Check

python27-sys/src/classobject.rs:73–76  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

71
72#[inline(always)]
73pub unsafe fn PyMethod_Check(op: *mut PyObject) -> c_int {
74 let u: *mut PyTypeObject = &mut PyMethod_Type;
75 (Py_TYPE(op) == u) as c_int
76}
77
78#[cfg_attr(windows, link(name = "pythonXY"))]
79extern "C" {

Callers

nothing calls this directly

Calls 1

Py_TYPEFunction · 0.70

Tested by

no test coverage detected