diff options
author | Georg Brandl <georg@python.org> | 2009-12-28 08:34:58 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-12-28 08:34:58 (GMT) |
commit | 740cdc3a9f9593ee1fe86d751c70b8505d6a19c9 (patch) | |
tree | 4c34f7bec409dfb040cba93c2064b37bb71b2b95 /Include | |
parent | 02e7dfde639498064b137be7cb850c4229f0c8fb (diff) | |
download | cpython-740cdc3a9f9593ee1fe86d751c70b8505d6a19c9.zip cpython-740cdc3a9f9593ee1fe86d751c70b8505d6a19c9.tar.gz cpython-740cdc3a9f9593ee1fe86d751c70b8505d6a19c9.tar.bz2 |
#7033: add new API function PyErr_NewExceptionWithDoc, for easily giving new exceptions a docstring.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pyerrors.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h index fedf913..432004a 100644 --- a/Include/pyerrors.h +++ b/Include/pyerrors.h @@ -220,8 +220,10 @@ PyAPI_FUNC(void) _PyErr_BadInternalCall(char *filename, int lineno); #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 */ |