Commit 19415284 authored by Neil Schemenauer's avatar Neil Schemenauer

Fix example for PyErr_SetFromErrno() (need to pass exception type).

parent 0f2103fb
...@@ -178,8 +178,8 @@ for each thread. ...@@ -178,8 +178,8 @@ for each thread.
\cfunction{PyErr_CheckSignals()}, and if that set the error \cfunction{PyErr_CheckSignals()}, and if that set the error
indicator, leaves it set to that. The function always returns indicator, leaves it set to that. The function always returns
\NULL, so a wrapper function around a system call can write \NULL, so a wrapper function around a system call can write
\samp{return PyErr_SetFromErrno();} when the system call returns an \samp{return PyErr_SetFromErrno(\var{type});} when the system call
error. returns an error.
\end{cfuncdesc} \end{cfuncdesc}
\begin{cfuncdesc}{PyObject*}{PyErr_SetFromErrnoWithFilename}{PyObject *type, \begin{cfuncdesc}{PyObject*}{PyErr_SetFromErrnoWithFilename}{PyObject *type,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment