mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix example for PyErr_SetFromErrno() (need to pass exception type).
This commit is contained in:
parent
0f2103fb16
commit
194152845c
1 changed files with 2 additions and 2 deletions
|
@ -178,8 +178,8 @@ for each thread.
|
|||
\cfunction{PyErr_CheckSignals()}, and if that set the error
|
||||
indicator, leaves it set to that. The function always returns
|
||||
\NULL, so a wrapper function around a system call can write
|
||||
\samp{return PyErr_SetFromErrno();} when the system call returns an
|
||||
error.
|
||||
\samp{return PyErr_SetFromErrno(\var{type});} when the system call
|
||||
returns an error.
|
||||
\end{cfuncdesc}
|
||||
|
||||
\begin{cfuncdesc}{PyObject*}{PyErr_SetFromErrnoWithFilename}{PyObject *type,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue