summaryrefslogtreecommitdiffstats
path: root/Doc/ext
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-02-18 03:50:01 (GMT)
committerFred Drake <fdrake@acm.org>1999-02-18 03:50:01 (GMT)
commit29fb54f0ca18caa03948737d9b180be299a8c2e6 (patch)
tree44cb015276946f8f89b193d1449d587e591d3ec2 /Doc/ext
parent951eea4733816fad445b25d8272b326dc6a8f6f0 (diff)
downloadcpython-29fb54f0ca18caa03948737d9b180be299a8c2e6.zip
cpython-29fb54f0ca18caa03948737d9b180be299a8c2e6.tar.gz
cpython-29fb54f0ca18caa03948737d9b180be299a8c2e6.tar.bz2
Update note about the (...) format specifier for PyArg_ParseTuple().
Diffstat (limited to 'Doc/ext')
-rw-r--r--Doc/ext/ext.tex14
1 files changed, 10 insertions, 4 deletions
diff --git a/Doc/ext/ext.tex b/Doc/ext/ext.tex
index 6166954..4bfff24 100644
--- a/Doc/ext/ext.tex
+++ b/Doc/ext/ext.tex
@@ -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 *}.
\item[\samp{(\var{items})} (tuple) {[\var{matching-items}]}]
-The object must be a Python tuple whose length is the number of format
-units in \var{items}. The C arguments must correspond to the
-individual format units in \var{items}. Format units for tuples may
-be nested.
+The object must be a Python sequence whose length is the number of
+format units in \var{items}. The C arguments must correspond to the
+individual format units in \var{items}. Format units for sequences
+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}