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

Function PyExceptionInstance_Check

python3-sys/src/pyerrors.rs:53–55  ·  view source on GitHub ↗
(x: *mut PyObject)

Source from the content-addressed store, hash-verified

51
52#[inline]
53pub unsafe fn PyExceptionInstance_Check(x: *mut PyObject) -> c_int {
54 PyType_FastSubclass((*x).ob_type, Py_TPFLAGS_BASE_EXC_SUBCLASS)
55}
56
57#[inline]
58pub unsafe fn PyExceptionInstance_Class(x: *mut PyObject) -> *mut PyObject {

Callers 1

from_instance_helperMethod · 0.50

Calls 1

PyType_FastSubclassFunction · 0.70

Tested by

no test coverage detected