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.
This commit is contained in:
Guido van Rossum 1998-02-26 17:07:11 +00:00
parent 74a11e59a2
commit 2474d68548
2 changed files with 6 additions and 6 deletions

View File

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

View File

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