diff options
author | Barry Warsaw <barry@python.org> | 1997-08-29 21:56:07 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 1997-08-29 21:56:07 (GMT) |
commit | 392d8272bf668169d009e8001c205b804ddd8bf8 (patch) | |
tree | aff7ffa04524b5812d3390da7e31ac438f9b6956 | |
parent | 2d8adff10a92fb979795e339395711f782fe71f8 (diff) | |
download | cpython-392d8272bf668169d009e8001c205b804ddd8bf8.zip cpython-392d8272bf668169d009e8001c205b804ddd8bf8.tar.gz cpython-392d8272bf668169d009e8001c205b804ddd8bf8.tar.bz2 |
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.
-rw-r--r-- | Include/pyerrors.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h index 45e8042..ece1f3f 100644 --- a/Include/pyerrors.h +++ b/Include/pyerrors.h @@ -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)); |