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

Function PyExceptionClass_Check

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

Source from the content-addressed store, hash-verified

87#[inline]
88#[cfg(not(RustPython))]
89pub unsafe fn PyExceptionClass_Check(x: *mut PyObject) -> c_int {
90 (PyType_Check(x) != 0
91 && PyType_FastSubclass(x as *mut PyTypeObject, Py_TPFLAGS_BASE_EXC_SUBCLASS) != 0)
92 as c_int
93}
94
95#[inline]
96#[cfg(not(RustPython))]

Callers 1

raise_lazyFunction · 0.85

Calls 2

PyType_CheckFunction · 0.85
PyType_FastSubclassFunction · 0.85

Tested by

no test coverage detected