]> granicus.if.org Git - python/commitdiff
Document that apply() can now take any sequence in argument 2.
authorBarry Warsaw <barry@python.org>
Thu, 1 Oct 1998 15:35:43 +0000 (15:35 +0000)
committerBarry Warsaw <barry@python.org>
Thu, 1 Oct 1998 15:35:43 +0000 (15:35 +0000)
Doc/lib/libfuncs.tex

index 0b0a8310bda7052310bd902402fda89719145857..8914883d8232b27497c8a29496af95a94ed57f0b 100644 (file)
@@ -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.)