Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1874c8f

Browse files
committed
Document PyErr_WarnExplicit().
1 parent c176132 commit 1874c8f

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Doc/api/api.tex

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -980,6 +980,15 @@ \chapter{Exception Handling \label{exceptionHandling}}
980980
line documentation. There is no C API for warning control.
981981
\end{cfuncdesc}
982982

983+
\begin{cfuncdesc}{int}{PyErr_WarnExplicit}{PyObject *category, char *message,
984+
char *filename, int lineno, char *module, PyObject *registry}
985+
Issue a warning message with explicit control over all warning
986+
attributes. This is a straightforward wrapper around the Python
987+
function \function{warnings.warn_explicit()}, see there for more
988+
information. The \var{module} and \var{registry} arguments may be
989+
set to \code{NULL} to get the default effect described there.
990+
\end{cfuncdesc}
991+
983992
\begin{cfuncdesc}{int}{PyErr_CheckSignals}{}
984993
This function interacts with Python's signal handling. It checks
985994
whether a signal has been sent to the processes and if so, invokes the

0 commit comments

Comments
 (0)