]> granicus.if.org Git - python/commitdiff
Fix up description of 'S' format; as Dave Ascher pointed out, it
authorGuido van Rossum <guido@python.org>
Thu, 26 Feb 1998 17:07:11 +0000 (17:07 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 26 Feb 1998 17:07:11 +0000 (17:07 +0000)
was ungrammatical to the point of saying the opposite of what it
should say.

Doc/ext.tex
Doc/ext/ext.tex

index 19265d1b5012cdb0cbc7a863c04ab11bfb0ee8e7..d8d5a43f42b36fab6859f437cf27493f100eb2a5 100644 (file)
@@ -653,9 +653,9 @@ has failed.  When the conversion fails, the \var{converter} function
 should raise an exception.
 
 \item[\samp{S} (string) {[PyStringObject *]}]
-Like \samp{O} but raises a \code{TypeError} exception that the object
-is a string object.  The \C{} variable may also be declared as
-\code{PyObject *}.
+Like \samp{O} but requires that the Python object is a string object.
+Raises a \code{TypeError} exception if the object is not a string
+object.  The \C{} variable may also be declared as \code{PyObject *}.
 
 \item[\samp{(\var{items})} (tuple) {[\var{matching-items}]}]
 The object must be a Python tuple whose length is the number of format
index 19265d1b5012cdb0cbc7a863c04ab11bfb0ee8e7..d8d5a43f42b36fab6859f437cf27493f100eb2a5 100644 (file)
@@ -653,9 +653,9 @@ has failed.  When the conversion fails, the \var{converter} function
 should raise an exception.
 
 \item[\samp{S} (string) {[PyStringObject *]}]
-Like \samp{O} but raises a \code{TypeError} exception that the object
-is a string object.  The \C{} variable may also be declared as
-\code{PyObject *}.
+Like \samp{O} but requires that the Python object is a string object.
+Raises a \code{TypeError} exception if the object is not a string
+object.  The \C{} variable may also be declared as \code{PyObject *}.
 
 \item[\samp{(\var{items})} (tuple) {[\var{matching-items}]}]
 The object must be a Python tuple whose length is the number of format