mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Added externs for three new exceptions PyExc_StandardError,
PyExc_NumberError, and PyExc_LookupError. Also added extern for pre-instantiated exception instance PyExc_MemoryErrorInst. Removed extern of obsolete exception PyExc_AccessError.
This commit is contained in:
parent
2d8adff10a
commit
392d8272bf
1 changed files with 7 additions and 1 deletions
|
@ -53,7 +53,10 @@ void PyErr_NormalizeException Py_PROTO((PyObject**, PyObject**, PyObject**));
|
|||
|
||||
/* Predefined exceptions */
|
||||
|
||||
extern DL_IMPORT(PyObject *) PyExc_AccessError;
|
||||
extern DL_IMPORT(PyObject *) PyExc_StandardError;
|
||||
extern DL_IMPORT(PyObject *) PyExc_NumberError;
|
||||
extern DL_IMPORT(PyObject *) PyExc_LookupError;
|
||||
|
||||
extern DL_IMPORT(PyObject *) PyExc_AssertionError;
|
||||
extern DL_IMPORT(PyObject *) PyExc_AttributeError;
|
||||
extern DL_IMPORT(PyObject *) PyExc_EOFError;
|
||||
|
@ -74,6 +77,9 @@ extern DL_IMPORT(PyObject *) PyExc_TypeError;
|
|||
extern DL_IMPORT(PyObject *) PyExc_ValueError;
|
||||
extern DL_IMPORT(PyObject *) PyExc_ZeroDivisionError;
|
||||
|
||||
extern DL_IMPORT(PyObject *) PyExc_MemoryErrorInst;
|
||||
|
||||
|
||||
/* Convenience functions */
|
||||
|
||||
extern int PyErr_BadArgument Py_PROTO((void));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue