Commit cc948c17 authored by Fred Drake's avatar Fred Drake

Update note about the (...) format specifier for PyArg_ParseTuple().

parent 1772547f
...@@ -702,10 +702,16 @@ Raises a \exception{TypeError} exception if the object is not a string ...@@ -702,10 +702,16 @@ Raises a \exception{TypeError} exception if the object is not a string
object. The C variable may also be declared as \ctype{PyObject *}. object. The C variable may also be declared as \ctype{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 sequence whose length is the number of
units in \var{items}. The C arguments must correspond to the format units in \var{items}. The C arguments must correspond to the
individual format units in \var{items}. Format units for tuples may individual format units in \var{items}. Format units for sequences
be nested. may be nested.
\strong{Note:} Prior to Python version 1.5.2, this format specifier
only accepted a tuple containing the individual parameters, not an
arbitrary sequence. Code which previously caused a
\exception{TypeError} to be raised here may now proceed without an
exception. This is not expected to be a problem for existing code.
\end{description} \end{description}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment