22 ((PyTypeObject*)PyExc_Exception)->tp_new(subtype,
nullptr,
nullptr);
31 excobj->
fCppInstance = PyType_Type.tp_call(ulc, args, kwds);
37 if (PyTuple_GET_SIZE(args) == 1) {
38 PyObject* msg = PyTuple_GET_ITEM(args, 0);
39 if (PyUnicode_Check(msg)) {
55 ((PyTypeObject*)PyExc_Exception)->tp_traverse((
PyObject*)pyobj, visit, args);
70 PyObject_CallMethod((
PyObject*)self, (
char*)
"what",
nullptr);
72 if (self->fTopMessage) {
73 Py_INCREF(self->fTopMessage);
75 PyUnicode_Append(&top,
what);
82 return PyObject_Str(self->fCppInstance);
90 return PyType_Type.tp_str((
PyObject*)self);
97 return PyType_Type.tp_repr((
PyObject*)self);
105 ((PyTypeObject*)PyExc_Exception)->tp_dealloc((
PyObject*)pyobj);
113 ((PyTypeObject*)PyExc_Exception)->tp_clear((
PyObject*)pyobj);
130 return ((PyTypeObject*)PyExc_Exception)->tp_getattro((
PyObject*)self,
attr);
142 return ((PyTypeObject*)PyExc_Exception)
148 return PyObject_RichCompare(self->
fCppInstance, other, op);
201 PyVarObject_HEAD_INIT(&PyType_Type,
202 0)(
char*)
"cppjit.CPPExcInstance",
220 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_BASE_EXC_SUBCLASS |
222 (
char*)
"cppjit exception object proxy (internal)",
232 (PyTypeObject*)PyExc_Exception,
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t attr
#define CPYRT_PYTYPE_TAIL
static PyObject * ep_getattro(CPPExcInstance *self, PyObject *attr)
static PyObject * ep_repr(CPPExcInstance *self)
static void ep_dealloc(CPPExcInstance *pyobj)
static PyNumberMethods ep_as_number
static int ep_clear(CPPExcInstance *pyobj)
static PyObject * ep_str(CPPExcInstance *self)
static PyObject * ep_richcompare(CPPExcInstance *self, PyObject *other, int op)
static int ep_setattro(CPPExcInstance *self, PyObject *attr, PyObject *value)
PyTypeObject CPPExcInstance_Type
static int ep_nonzero(CPPExcInstance *self)
static PyObject * ep_new(PyTypeObject *subtype, PyObject *args, PyObject *kwds)
static int ep_traverse(CPPExcInstance *pyobj, visitproc visit, void *args)