diff Include/pyerrors.h @ 57962:c1972eef3579

Merged revisions 77088 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r77088 | georg.brandl | 2009-12-28 09:34:58 +0100 (Mo, 28 Dez 2009) | 1 line #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:41:01 +0000
parents 0704f15b4682
children cab14be0ada1
line wrap: on
line diff
--- a/Include/pyerrors.h	Mon Dec 28 08:10:38 2009 +0000
+++ b/Include/pyerrors.h	Mon Dec 28 08:41:01 2009 +0000
@@ -210,8 +210,10 @@
 #define PyErr_BadInternalCall() _PyErr_BadInternalCall(__FILE__, __LINE__)
 
 /* Function to create a new exception */
-PyAPI_FUNC(PyObject *) PyErr_NewException(const char *name, PyObject *base,
-                                         PyObject *dict);
+PyAPI_FUNC(PyObject *) PyErr_NewException(
+	const char *name, PyObject *base, PyObject *dict);
+PyAPI_FUNC(PyObject *) PyErr_NewExceptionWithDoc(
+	const char *name, const char *doc, PyObject *base, PyObject *dict);
 PyAPI_FUNC(void) PyErr_WriteUnraisable(PyObject *);
 
 /* In sigcheck.c or signalmodule.c */