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

Skip to content

Commit 2474d68

Browse files
committed
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.
1 parent 74a11e5 commit 2474d68

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Doc/ext.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -653,9 +653,9 @@ \section{Format Strings for \sectcode{PyArg_ParseTuple()}}
653653
should raise an exception.
654654

655655
\item[\samp{S} (string) {[PyStringObject *]}]
656-
Like \samp{O} but raises a \code{TypeError} exception that the object
657-
is a string object. The \C{} variable may also be declared as
658-
\code{PyObject *}.
656+
Like \samp{O} but requires that the Python object is a string object.
657+
Raises a \code{TypeError} exception if the object is not a string
658+
object. The \C{} variable may also be declared as \code{PyObject *}.
659659

660660
\item[\samp{(\var{items})} (tuple) {[\var{matching-items}]}]
661661
The object must be a Python tuple whose length is the number of format

Doc/ext/ext.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -653,9 +653,9 @@ \section{Format Strings for \sectcode{PyArg_ParseTuple()}}
653653
should raise an exception.
654654

655655
\item[\samp{S} (string) {[PyStringObject *]}]
656-
Like \samp{O} but raises a \code{TypeError} exception that the object
657-
is a string object. The \C{} variable may also be declared as
658-
\code{PyObject *}.
656+
Like \samp{O} but requires that the Python object is a string object.
657+
Raises a \code{TypeError} exception if the object is not a string
658+
object. The \C{} variable may also be declared as \code{PyObject *}.
659659

660660
\item[\samp{(\var{items})} (tuple) {[\var{matching-items}]}]
661661
The object must be a Python tuple whose length is the number of format

0 commit comments

Comments
 (0)