diff Include/pyerrors.h @ 57961:cf39c5e462f9 legacy-trunk

#7033: add new API function PyErr_NewExceptionWithDoc, for easily giving new exceptions a docstring.
author Georg Brandl <georg@python.org>
date Mon, 28 Dec 2009 08:34:58 +0000
parents 921e569d1215
children fd25030223b0
line wrap: on
line diff
--- a/Include/pyerrors.h	Mon Dec 28 08:09:32 2009 +0000
+++ b/Include/pyerrors.h	Mon Dec 28 08:34:58 2009 +0000
@@ -220,8 +220,10 @@
 #define PyErr_BadInternalCall() _PyErr_BadInternalCall(__FILE__, __LINE__)
 
 /* Function to create a new exception */
-PyAPI_FUNC(PyObject *) PyErr_NewException(char *name, PyObject *base,
-                                         PyObject *dict);
+PyAPI_FUNC(PyObject *) PyErr_NewException(
+	char *name, PyObject *base, PyObject *dict);
+PyAPI_FUNC(PyObject *) PyErr_NewExceptionWithDoc(
+	char *name, char *doc, PyObject *base, PyObject *dict);
 PyAPI_FUNC(void) PyErr_WriteUnraisable(PyObject *);
 
 /* In sigcheck.c or signalmodule.c */