From: Guido van Rossum Date: Thu, 26 Feb 1998 17:07:11 +0000 (+0000) Subject: Fix up description of 'S' format; as Dave Ascher pointed out, it X-Git-Tag: v1.5.1~566 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2474d685480f437b68e0fbb110b33f7541a4fe1d;p=python Fix up description of 'S' format; as Dave Ascher pointed out, it was ungrammatical to the point of saying the opposite of what it should say. --- diff --git a/Doc/ext.tex b/Doc/ext.tex index 19265d1b50..d8d5a43f42 100644 --- a/Doc/ext.tex +++ b/Doc/ext.tex @@ -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 diff --git a/Doc/ext/ext.tex b/Doc/ext/ext.tex index 19265d1b50..d8d5a43f42 100644 --- a/Doc/ext/ext.tex +++ b/Doc/ext/ext.tex @@ -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