Skip to content

Commit 4bc0aed

Browse files
committed
Fix cut & paste error that describes three paramters when there are only
two [bug #119729]. Update use of distutils.sysconfig that "broke" when Greg W. changed the API [bug #119645].
1 parent 262cf20 commit 4bc0aed

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Doc/ext/ext.tex

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -718,10 +718,9 @@ \section{Format Strings for \cfunction{PyArg_ParseTuple()}
718718
encoded data without embedded \NULL{} bytes.
719719

720720
The variant reads one C variable and stores into two C variables, the
721-
first one a pointer to an encoding name string (\var{encoding}), the
721+
first one a pointer to an encoding name string (\var{encoding}), and the
722722
second a pointer to a pointer to a character buffer (\var{**buffer},
723-
the buffer used for storing the encoded data) and the third one a
724-
pointer to an integer (\var{*buffer_length}, the buffer length).
723+
the buffer used for storing the encoded data).
725724

726725
The encoding name must map to a registered codec. If set to \NULL{},
727726
the default encoding is used.
@@ -2138,7 +2137,7 @@ \section{Linking Requirements
21382137

21392138
\begin{verbatim}
21402139
>>> import distutils.sysconfig
2141-
>>> distutils.sysconfig.LINKFORSHARED
2140+
>>> distutils.sysconfig.get_config_var('LINKFORSHARED')
21422141
'-Xlinker -export-dynamic'
21432142
\end{verbatim}
21442143
\refstmodindex{distutils.sysconfig}

0 commit comments

Comments
 (0)