diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-03-01 05:16:03 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-03-01 05:16:03 (GMT) |
commit | 29fafd8708cb19f1c2350618426dd99b4d76819a (patch) | |
tree | 75d4eb09cce9b62f6c6f44e07877c8471c5516be /Doc/api/exceptions.tex | |
parent | 67d70eb957faf61e0cba548fcad374ec361429c4 (diff) | |
download | cpython-29fafd8708cb19f1c2350618426dd99b4d76819a.zip cpython-29fafd8708cb19f1c2350618426dd99b4d76819a.tar.gz cpython-29fafd8708cb19f1c2350618426dd99b4d76819a.tar.bz2 |
Make documentation match the implementation.
Diffstat (limited to 'Doc/api/exceptions.tex')
-rw-r--r-- | Doc/api/exceptions.tex | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Doc/api/exceptions.tex b/Doc/api/exceptions.tex index 784b936..b906172 100644 --- a/Doc/api/exceptions.tex +++ b/Doc/api/exceptions.tex @@ -113,7 +113,7 @@ for each thread. exception state.} \end{cfuncdesc} -\begin{cfuncdesc}{void}{PyErr_SetString}{PyObject *type, char *message} +\begin{cfuncdesc}{void}{PyErr_SetString}{PyObject *type, const char *message} This is the most common way to set the error indicator. The first argument specifies the exception type; it is normally one of the standard exceptions, e.g. \cdata{PyExc_RuntimeError}. You need not @@ -184,7 +184,7 @@ for each thread. \end{cfuncdesc} \begin{cfuncdesc}{PyObject*}{PyErr_SetFromErrnoWithFilename}{PyObject *type, - char *filename} + const char *filename} Similar to \cfunction{PyErr_SetFromErrno()}, with the additional behavior that if \var{filename} is not \NULL, it is passed to the constructor of \var{type} as a third parameter. In the case of @@ -217,7 +217,7 @@ for each thread. \end{cfuncdesc} \begin{cfuncdesc}{PyObject*}{PyErr_SetFromWindowsErrWithFilename}{int ierr, - char *filename} + const char *filename} Similar to \cfunction{PyErr_SetFromWindowsErr()}, with the additional behavior that if \var{filename} is not \NULL, it is passed to the constructor of \exception{WindowsError} as a third @@ -275,8 +275,9 @@ for each thread. command line documentation. There is no C API for warning control. \end{cfuncdesc} -\begin{cfuncdesc}{int}{PyErr_WarnExplicit}{PyObject *category, char *message, - char *filename, int lineno, char *module, PyObject *registry} +\begin{cfuncdesc}{int}{PyErr_WarnExplicit}{PyObject *category, + const char *message, const char *filename, int lineno, + const char *module, PyObject *registry} Issue a warning message with explicit control over all warning attributes. This is a straightforward wrapper around the Python function \function{warnings.warn_explicit()}, see there for more |