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

Skip to content

Commit d16ddb6

Browse files
committed
Typos reported by Tamito Kajiyama.
1 parent f630f6b commit d16ddb6

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/ext.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ \section{Intermezzo: Errors and Exceptions}
196196
to call \code{PyErr_Occurred()} to see whether an error occurred in a
197197
function 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
200200
that 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}
309309
as 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

Doc/ext/ext.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ \section{Intermezzo: Errors and Exceptions}
196196
to call \code{PyErr_Occurred()} to see whether an error occurred in a
197197
function 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
200200
that 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}
309309
as 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

0 commit comments

Comments
 (0)