22 PyObject* pyobj = ((PyTypeObject*)PyExc_Exception)->tp_new(subtype,
nullptr,
nullptr);
30 excobj->
fCppInstance = PyType_Type.tp_call(ulc, args, kwds);
35 if (PyTuple_GET_SIZE(args) == 1) {
36 PyObject* msg = PyTuple_GET_ITEM(args, 0);
54 ((PyTypeObject*)PyExc_Exception)->tp_traverse((
PyObject*)pyobj, visit, args);
71 if (self->fTopMessage) {
72 Py_INCREF(self->fTopMessage);
81 return PyObject_Str(self->fCppInstance);
89 return PyType_Type.tp_str((
PyObject*)self);
97 return PyType_Type.tp_repr((
PyObject*)self);
106 ((PyTypeObject*)PyExc_Exception)->tp_dealloc((
PyObject*)pyobj);
115 ((PyTypeObject*)PyExc_Exception)->tp_clear((
PyObject*)pyobj);
132 return ((PyTypeObject*)PyExc_Exception)->tp_getattro((
PyObject*)self,
attr);
140 if (!res)
return res;
144 return ((PyTypeObject*)PyExc_Exception)->tp_setattro((
PyObject*)self,
attr,
value);
150 return PyObject_RichCompare(self->
fCppInstance, other, op);
167#if PY_VERSION_HEX < 0x03000000
183#
if PY_VERSION_HEX < 0x03000000
189#
if PY_VERSION_HEX < 0x03000000
196#
if PY_VERSION_HEX < 0x03000000
206#
if PY_VERSION_HEX >= 0x02020000
208#
if PY_VERSION_HEX < 0x03000000
216#
if PY_VERSION_HEX >= 0x02050000
219#
if PY_VERSION_HEX >= 0x03050000
228 (
char*)
"cppyy.CPPExcInstance",
247 Py_TPFLAGS_BASETYPE |
248 Py_TPFLAGS_BASE_EXC_SUBCLASS |
250 Py_TPFLAGS_CHECKTYPES,
251 (
char*)
"cppyy exception object proxy (internal)",
261 (PyTypeObject*)PyExc_Exception,
276#
if PY_VERSION_HEX >= 0x02030000
279#
if PY_VERSION_HEX >= 0x02060000
282#
if PY_VERSION_HEX >= 0x03040000
285#
if PY_VERSION_HEX >= 0x03080000
288#
if PY_VERSION_HEX >= 0x030c0000
#define CPyCppyy_PyText_Append
#define CPyCppyy_PyText_Check
#define PyVarObject_HEAD_INIT(type, size)
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
PyTypeObject CPPExcInstance_Type
static PyObject * ep_new(PyTypeObject *subtype, PyObject *args, PyObject *kwds)
static PyObject * ep_repr(CPPExcInstance *self)
static int ep_clear(CPPExcInstance *pyobj)
static void ep_dealloc(CPPExcInstance *pyobj)
static PyNumberMethods ep_as_number
static int ep_traverse(CPPExcInstance *pyobj, visitproc visit, void *args)
static int ep_setattro(CPPExcInstance *self, PyObject *attr, PyObject *value)
static PyObject * ep_getattro(CPPExcInstance *self, PyObject *attr)
static PyObject * ep_richcompare(CPPExcInstance *self, PyObject *other, int op)
static PyObject * ep_str(CPPExcInstance *self)
static int ep_nonzero(CPPExcInstance *self)