Lines Matching refs:PyBaseExceptionObject
41 PyBaseExceptionObject *self; in BaseException_new()
43 self = (PyBaseExceptionObject *)type->tp_alloc(type, 0); in BaseException_new()
67 BaseException_init(PyBaseExceptionObject *self, PyObject *args, PyObject *kwds) in BaseException_init()
79 BaseException_clear(PyBaseExceptionObject *self) in BaseException_clear()
90 BaseException_dealloc(PyBaseExceptionObject *self) in BaseException_dealloc()
98 BaseException_traverse(PyBaseExceptionObject *self, visitproc visit, void *arg) in BaseException_traverse()
109 BaseException_str(PyBaseExceptionObject *self) in BaseException_str()
122 BaseException_repr(PyBaseExceptionObject *self) in BaseException_repr()
134 BaseException_reduce(PyBaseExceptionObject *self, PyObject *Py_UNUSED(ignored)) in BaseException_reduce()
189 BaseException_get_args(PyBaseExceptionObject *self, void *Py_UNUSED(ignored)) in BaseException_get_args()
199 BaseException_set_args(PyBaseExceptionObject *self, PyObject *val, void *Py_UNUSED(ignored)) in BaseException_set_args()
214 BaseException_get_tb(PyBaseExceptionObject *self, void *Py_UNUSED(ignored)) in BaseException_get_tb()
224 BaseException_set_tb(PyBaseExceptionObject *self, PyObject *tb, void *Py_UNUSED(ignored)) in BaseException_set_tb()
312 static inline PyBaseExceptionObject*
316 return (PyBaseExceptionObject *)exc; in _PyBaseExceptionObject_cast()
323 PyBaseExceptionObject *base_self = _PyBaseExceptionObject_cast(self); in PyException_GetTraceback()
347 PyBaseExceptionObject *base_self = _PyBaseExceptionObject_cast(self); in PyException_SetCause()
376 offsetof(PyBaseExceptionObject, suppress_context)},
384 sizeof(PyBaseExceptionObject), /*tp_basicsize*/
417 offsetof(PyBaseExceptionObject, dict), /* tp_dictoffset */
434 sizeof(PyBaseExceptionObject), \
440 0, 0, 0, offsetof(PyBaseExceptionObject, dict), \
516 if (BaseException_init((PyBaseExceptionObject *)self, args, kwds) == -1) in StopIteration_init()
532 return BaseException_clear((PyBaseExceptionObject *)self); in StopIteration_clear()
547 return BaseException_traverse((PyBaseExceptionObject *)self, visit, arg); in StopIteration_traverse()
579 if (BaseException_init((PyBaseExceptionObject *)self, args, kwds) == -1) in SystemExit_init()
599 return BaseException_clear((PyBaseExceptionObject *)self); in SystemExit_clear()
614 return BaseException_traverse((PyBaseExceptionObject *)self, visit, arg); in SystemExit_traverse()
647 if (BaseException_init((PyBaseExceptionObject *)self, args, NULL) == -1) in ImportError_init()
681 return BaseException_clear((PyBaseExceptionObject *)self); in ImportError_clear()
698 return BaseException_traverse((PyBaseExceptionObject *)self, visit, arg); in ImportError_traverse()
709 return BaseException_str((PyBaseExceptionObject *)self); in ImportError_str()
716 PyObject *dict = ((PyBaseExceptionObject *)self)->dict; in ImportError_getstate()
751 args = ((PyBaseExceptionObject *)self)->args; in ImportError_reduce()
1084 return BaseException_clear((PyBaseExceptionObject *)self); in OSError_clear()
1106 return BaseException_traverse((PyBaseExceptionObject *)self, visit, arg); in OSError_traverse()
1151 return BaseException_str((PyBaseExceptionObject *)self); in OSError_str()
1336 if (BaseException_init((PyBaseExceptionObject *)self, args, NULL) == -1) { in NameError_init()
1361 return BaseException_clear((PyBaseExceptionObject *)self); in NameError_clear()
1376 return BaseException_traverse((PyBaseExceptionObject *)self, visit, arg); in NameError_traverse()
1411 if (BaseException_init((PyBaseExceptionObject *)self, args, NULL) == -1) { in AttributeError_init()
1440 return BaseException_clear((PyBaseExceptionObject *)self); in AttributeError_clear()
1456 return BaseException_traverse((PyBaseExceptionObject *)self, visit, arg); in AttributeError_traverse()
1484 if (BaseException_init((PyBaseExceptionObject *)self, args, kwds) == -1) in SyntaxError_init()
1535 return BaseException_clear((PyBaseExceptionObject *)self); in SyntaxError_clear()
1557 return BaseException_traverse((PyBaseExceptionObject *)self, visit, arg); in SyntaxError_traverse()
1692 KeyError_str(PyBaseExceptionObject *self) in KeyError_str()
1985 return BaseException_clear((PyBaseExceptionObject *)self); in UnicodeError_clear()
2002 return BaseException_traverse((PyBaseExceptionObject *)self, visit, arg); in UnicodeError_traverse()
2029 if (BaseException_init((PyBaseExceptionObject *)self, args, kwds) == -1) in UnicodeEncodeError_init()
2136 if (BaseException_init((PyBaseExceptionObject *)self, args, kwds) == -1) in UnicodeDecodeError_init()
2251 if (BaseException_init((PyBaseExceptionObject *)self, args, kwds) == -1) in UnicodeTranslateError_init()
2410 PyBaseExceptionObject *self; in MemoryError_new()
2431 state->memerrors_freelist = (PyBaseExceptionObject *) self->dict; in MemoryError_new()
2440 MemoryError_dealloc(PyBaseExceptionObject *self) in MemoryError_dealloc()
2489 state->memerrors_freelist = (PyBaseExceptionObject *)state->memerrors_freelist->dict; in free_preallocated_memerrors()
2498 sizeof(PyBaseExceptionObject),
2504 0, 0, 0, offsetof(PyBaseExceptionObject, dict),
2978 instance_args = ((PyBaseExceptionObject *)val)->args; in _PyErr_TrySetFromCause()