]> granicus.if.org Git - python/commitdiff
Typos reported by Tamito Kajiyama.
authorGuido van Rossum <guido@python.org>
Fri, 13 Dec 1996 02:38:17 +0000 (02:38 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 13 Dec 1996 02:38:17 +0000 (02:38 +0000)
Doc/ext.tex
Doc/ext/ext.tex

index f133a3ffd348d74d2e702ded904377600ad8f212..83d1078de8cc31da24143ba0018399f48ad18799 100644 (file)
@@ -196,7 +196,7 @@ or \code{NULL} if no exception has occurred.  You normally don't need
 to call \code{PyErr_Occurred()} to see whether an error occurred in a
 function call, since you should be able to tell from the return value.
 
-When a function \var{f} that calls another function var{g} detects
+When a function \var{f} that calls another function \var{g} detects
 that the latter fails, \var{f} should itself return an error value
 (e.g. \code{NULL} or \code{-1}).  It should \emph{not} call one of the
 \code{PyErr_*()} functions --- one has already been called by \var{g}.
@@ -305,7 +305,7 @@ passing it the string we just got from \code{PyArg_ParseTuple()}:
         sts = system(command);
 \end{verbatim}
 
-Our \code{spam.system()} function must return the value of \code{sys}
+Our \code{spam.system()} function must return the value of \code{sts}
 as a Python object.  This is done using the function
 \code{Py_BuildValue()}, which is something like the inverse of
 \code{PyArg_ParseTuple()}: it takes a format string and an arbitrary
index f133a3ffd348d74d2e702ded904377600ad8f212..83d1078de8cc31da24143ba0018399f48ad18799 100644 (file)
@@ -196,7 +196,7 @@ or \code{NULL} if no exception has occurred.  You normally don't need
 to call \code{PyErr_Occurred()} to see whether an error occurred in a
 function call, since you should be able to tell from the return value.
 
-When a function \var{f} that calls another function var{g} detects
+When a function \var{f} that calls another function \var{g} detects
 that the latter fails, \var{f} should itself return an error value
 (e.g. \code{NULL} or \code{-1}).  It should \emph{not} call one of the
 \code{PyErr_*()} functions --- one has already been called by \var{g}.
@@ -305,7 +305,7 @@ passing it the string we just got from \code{PyArg_ParseTuple()}:
         sts = system(command);
 \end{verbatim}
 
-Our \code{spam.system()} function must return the value of \code{sys}
+Our \code{spam.system()} function must return the value of \code{sts}
 as a Python object.  This is done using the function
 \code{Py_BuildValue()}, which is something like the inverse of
 \code{PyArg_ParseTuple()}: it takes a format string and an arbitrary