summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-09-16 21:50:37 (GMT)
committerGuido van Rossum <guido@python.org>1997-09-16 21:50:37 (GMT)
commit2d2c34445b4b170a05a2280ab80656e3f5e1d988 (patch)
tree5d9c4a3666c640e89d39d12fdff4bbdbefa36e28
parent65349a3936e4475bdc94b723707f467c596c0135 (diff)
downloadcpython-2d2c34445b4b170a05a2280ab80656e3f5e1d988.zip
cpython-2d2c34445b4b170a05a2280ab80656e3f5e1d988.tar.gz
cpython-2d2c34445b4b170a05a2280ab80656e3f5e1d988.tar.bz2
New API PyErr_NewException(name, base, dict) to create simple new exceptions.
-rw-r--r--Include/pyerrors.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h
index cd6b7ba..3be7963 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));