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

Function PyExceptionInstance_Check

pyo3-ffi/src/pyerrors.rs:97–99  ·  view source on GitHub ↗
(x: *mut PyObject)

Source from the content-addressed store, hash-verified

95#[inline]
96#[cfg(not(RustPython))]
97pub unsafe fn PyExceptionInstance_Check(x: *mut PyObject) -> c_int {
98 PyType_FastSubclass(Py_TYPE(x), Py_TPFLAGS_BASE_EXC_SUBCLASS)
99}
100
101#[inline]
102#[cfg(not(PyPy))]

Callers

nothing calls this directly

Calls 2

PyType_FastSubclassFunction · 0.85
Py_TYPEFunction · 0.85

Tested by

no test coverage detected