File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ \section{Intermezzo: Errors and Exceptions}
196196to call \code {PyErr_Occurred()} to see whether an error occurred in a
197197function call, since you should be able to tell from the return value.
198198
199- When a function \var {f} that calls another function var{g} detects
199+ When a function \var {f} that calls another function \ var {g} detects
200200that the latter fails, \var {f} should itself return an error value
201201(e.g. \code {NULL} or \code {-1}). It should \emph {not } call one of the
202202\code {PyErr_*()} functions --- one has already been called by \var {g}.
@@ -305,7 +305,7 @@ \section{Back to the Example}
305305 sts = system(command);
306306\end {verbatim }
307307
308- Our \code {spam.system()} function must return the value of \code {sys }
308+ Our \code {spam.system()} function must return the value of \code {sts }
309309as a Python object. This is done using the function
310310\code {Py_BuildValue()}, which is something like the inverse of
311311\code {PyArg_ParseTuple()}: it takes a format string and an arbitrary
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ \section{Intermezzo: Errors and Exceptions}
196196to call \code {PyErr_Occurred()} to see whether an error occurred in a
197197function call, since you should be able to tell from the return value.
198198
199- When a function \var {f} that calls another function var{g} detects
199+ When a function \var {f} that calls another function \ var {g} detects
200200that the latter fails, \var {f} should itself return an error value
201201(e.g. \code {NULL} or \code {-1}). It should \emph {not } call one of the
202202\code {PyErr_*()} functions --- one has already been called by \var {g}.
@@ -305,7 +305,7 @@ \section{Back to the Example}
305305 sts = system(command);
306306\end {verbatim }
307307
308- Our \code {spam.system()} function must return the value of \code {sys }
308+ Our \code {spam.system()} function must return the value of \code {sts }
309309as a Python object. This is done using the function
310310\code {Py_BuildValue()}, which is something like the inverse of
311311\code {PyArg_ParseTuple()}: it takes a format string and an arbitrary
You can’t perform that action at this time.
0 commit comments