Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PyO3/pyo3
/ PyExceptionInstance_Class
Function
PyExceptionInstance_Class
pyo3-ffi/src/pyerrors.rs:103–105 ·
view source on GitHub ↗
(x: *mut PyObject)
Source
from the content-addressed store, hash-verified
101
#[inline]
102
#[cfg(not(PyPy))]
103
pub unsafe fn PyExceptionInstance_Class(x: *mut PyObject) -> *mut PyObject {
104
Py_TYPE(x) as *mut PyObject
105
}
106
107
// ported from cpython exception.c (line 2096)
108
#[cfg(PyPy)]
Callers
nothing calls this directly
Calls
1
Py_TYPE
Function · 0.85
Tested by
no test coverage detected