MCPcopy Create free account
hub / github.com/PyO3/pyo3 / PyFunction_Check

Function PyFunction_Check

pyo3-ffi/src/cpython/funcobject.rs:67–69  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

65
66#[inline]
67pub unsafe fn PyFunction_Check(op: *mut PyObject) -> c_int {
68 Py_IS_TYPE(op, &raw mut PyFunction_Type)
69}
70
71extern_libpython! {
72 pub fn PyFunction_New(code: *mut PyObject, globals: *mut PyObject) -> *mut PyObject;

Callers

nothing calls this directly

Calls 1

Py_IS_TYPEFunction · 0.85

Tested by

no test coverage detected