summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1998-10-01 15:35:43 (GMT)
committerBarry Warsaw <barry@python.org>1998-10-01 15:35:43 (GMT)
commitb2031f72d325ea3a05b51d89ead3e2cbb0bef659 (patch)
treed71963f5db8fe9ec6d19f9d3db0b2f0dee702697 /Doc
parent968f8cbacea38d991cb5c8816da1235355c004df (diff)
downloadcpython-b2031f72d325ea3a05b51d89ead3e2cbb0bef659.zip
cpython-b2031f72d325ea3a05b51d89ead3e2cbb0bef659.tar.gz
cpython-b2031f72d325ea3a05b51d89ead3e2cbb0bef659.tar.bz2
Document that apply() can now take any sequence in argument 2.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libfuncs.tex5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex
index 0b0a831..8914883 100644
--- a/Doc/lib/libfuncs.tex
+++ b/Doc/lib/libfuncs.tex
@@ -55,8 +55,9 @@ find the \code{eggs} variable.
\begin{funcdesc}{apply}{function, args\optional{, keywords}}
The \var{function} argument must be a callable object (a user-defined or
built-in function or method, or a class object) and the \var{args}
-argument must be a tuple. The \var{function} is called with
-\var{args} as argument list; the number of arguments is the the length
+argument must be a sequence (if it is not a tuple, the sequence is
+first converted to a tuple). The \var{function} is called with
+\var{args} as the argument list; the number of arguments is the the length
of the tuple. (This is different from just calling
\code{\var{func}(\var{args})}, since in that case there is always
exactly one argument.)