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

Function PyExceptionClass_Name

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

Source from the content-addressed store, hash-verified

45
46#[inline]
47pub unsafe fn PyExceptionClass_Name(x: *mut PyObject) -> *const c_char {
48 if PyClass_Check(x) != 0 {
49 PyString_AS_STRING((*(x as *mut PyClassObject)).cl_name)
50 } else {
51 (*(x as *mut PyTypeObject)).tp_name
52 }
53}
54
55#[inline]
56pub unsafe fn PyExceptionInstance_Class(x: *mut PyObject) -> *mut PyObject {

Callers

nothing calls this directly

Calls 2

PyClass_CheckFunction · 0.85
PyString_AS_STRINGFunction · 0.85

Tested by

no test coverage detected