From: Guido van Rossum Date: Tue, 16 Sep 1997 21:50:37 +0000 (+0000) Subject: New API PyErr_NewException(name, base, dict) to create simple new exceptions. X-Git-Tag: v1.5a4~148 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2d2c34445b4b170a05a2280ab80656e3f5e1d988;p=thirdparty%2FPython%2Fcpython.git New API PyErr_NewException(name, base, dict) to create simple new exceptions. --- diff --git a/Include/pyerrors.h b/Include/pyerrors.h index cd6b7ba7cc8e..3be796346e80 100644 --- a/Include/pyerrors.h +++ b/Include/pyerrors.h @@ -90,6 +90,10 @@ extern PyObject *PyErr_Format Py_PROTO((PyObject *, const char *, ...)); extern void PyErr_BadInternalCall Py_PROTO((void)); +/* Function to create a new exception */ +PyObject *PyErr_NewException Py_PROTO((char *name, PyObject *base, + PyObject *dict)); + /* In sigcheck.c or signalmodule.c */ extern int PyErr_CheckSignals Py_PROTO((void)); extern void PyErr_SetInterrupt Py_PROTO((void));