diff options
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2002-03-23 20:57:11 (GMT) |
---|---|---|
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2002-03-23 20:57:11 (GMT) |
commit | 194152845c873d4c915094daaebf52703ae06203 (patch) | |
tree | 2c7ed02ecb6ad94ec3e361babd05a54e6dc0ed3d /Doc | |
parent | 0f2103fb16c3ed907c3388a2f862105b81c843d4 (diff) | |
download | cpython-194152845c873d4c915094daaebf52703ae06203.zip cpython-194152845c873d4c915094daaebf52703ae06203.tar.gz cpython-194152845c873d4c915094daaebf52703ae06203.tar.bz2 |
Fix example for PyErr_SetFromErrno() (need to pass exception type).
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/api/exceptions.tex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/api/exceptions.tex b/Doc/api/exceptions.tex index eaaafdd..796291f 100644 --- a/Doc/api/exceptions.tex +++ b/Doc/api/exceptions.tex @@ -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, |