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

Skip to content

Commit aa126e1

Browse files
committed
Corrected a number of typos reported by Gilles Civario
<[email protected]>. This closes bug #122562.
1 parent d99e534 commit aa126e1

1 file changed

Lines changed: 3 additions & 12 deletions

File tree

Doc/ext/ext.tex

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ \section{Format Strings for \cfunction{PyArg_ParseTuple()}
735735
object) {[const char *encoding, char **buffer, int *buffer_length]}]
736736
This variant on \samp{s\#} is used for encoding Unicode and objects
737737
convertible to Unicode into a character buffer. It reads one C
738-
variable and stores into two C variables, the first one a pointer to
738+
variable and stores into three C variables, the first one a pointer to
739739
an encoding name string (\var{encoding}), the second a pointer to a
740740
pointer to a character buffer (\var{**buffer}, the buffer used for
741741
storing the encoded data) and the third one a pointer to an integer
@@ -886,8 +886,8 @@ \section{Format Strings for \cfunction{PyArg_ParseTuple()}
886886
the exception that \cfunction{PyArg_ParseTuple()} raises).
887887

888888
\item[\samp{;}]
889-
The list of format units ends here; the string after the colon is used
890-
as the error message \emph{instead} of the default error message.
889+
The list of format units ends here; the string after the semicolon is
890+
used as the error message \emph{instead} of the default error message.
891891
Clearly, \samp{:} and \samp{;} mutually exclude each other.
892892

893893
\end{description}
@@ -1101,15 +1101,6 @@ \section{The \cfunction{Py_BuildValue()} Function
11011101
Unicode object. If the Unicode buffer pointer is \NULL, the length
11021102
is ignored and \code{None} is returned.
11031103

1104-
\item[\samp{u} (Unicode string) {[Py_UNICODE *]}]
1105-
Convert a null-terminated buffer of Unicode (UCS-2) data to a Python Unicode
1106-
object. If the Unicode buffer pointer is \NULL{}, \code{None} is returned.
1107-
1108-
\item[\samp{u\#} (Unicode string) {[Py_UNICODE *, int]}]
1109-
Convert a Unicode (UCS-2) data buffer and its length to a Python Unicode
1110-
object. If the Unicode buffer pointer is \NULL{}, the length is ignored and
1111-
\code{None} is returned.
1112-
11131104
\item[\samp{i} (integer) {[int]}]
11141105
Convert a plain C \ctype{int} to a Python integer object.
11151106

0 commit comments

Comments
 (0)