diff options
author | Guido van Rossum <guido@python.org> | 2001-02-28 23:46:44 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-02-28 23:46:44 (GMT) |
commit | 1874c8f23b99aecd66fa9eb7fa66b2258c74b0c1 (patch) | |
tree | 8359bf46d49c75ed82c53e0fcd44247a366a52cd | |
parent | c176132d6393b7f8908d0d5f9934311273137c6e (diff) | |
download | cpython-1874c8f23b99aecd66fa9eb7fa66b2258c74b0c1.zip cpython-1874c8f23b99aecd66fa9eb7fa66b2258c74b0c1.tar.gz cpython-1874c8f23b99aecd66fa9eb7fa66b2258c74b0c1.tar.bz2 |
Document PyErr_WarnExplicit().
-rw-r--r-- | Doc/api/api.tex | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/api/api.tex b/Doc/api/api.tex index 7cda0d5..7a11660 100644 --- a/Doc/api/api.tex +++ b/Doc/api/api.tex @@ -980,6 +980,15 @@ For information about warning control, see the documentation for the 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} +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 +information. The \var{module} and \var{registry} arguments may be +set to \code{NULL} to get the default effect described there. +\end{cfuncdesc} + \begin{cfuncdesc}{int}{PyErr_CheckSignals}{} This function interacts with Python's signal handling. It checks whether a signal has been sent to the processes and if so, invokes the |