summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-03-17 08:00:19 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-03-17 08:00:19 (GMT)
commitd91085598f5185b267ea51a3f615da9527af2ed2 (patch)
tree80849b9455438e9963a61d7aff3fc3b060213553 /Doc
parentfe55464f393fc002fd0911a4d8dba6694723d408 (diff)
downloadcpython-d91085598f5185b267ea51a3f615da9527af2ed2.zip
cpython-d91085598f5185b267ea51a3f615da9527af2ed2.tar.gz
cpython-d91085598f5185b267ea51a3f615da9527af2ed2.tar.bz2
Remove apply()
Diffstat (limited to 'Doc')
-rw-r--r--Doc/api/abstract.tex3
-rw-r--r--Doc/lib/libfuncs.tex20
2 files changed, 0 insertions, 23 deletions
diff --git a/Doc/api/abstract.tex b/Doc/api/abstract.tex
index f01512c..e1c3901 100644
--- a/Doc/api/abstract.tex
+++ b/Doc/api/abstract.tex
@@ -235,7 +235,6 @@ determination.
or \NULL{} on failure. This is the equivalent of the Python
expression \samp{apply(\var{callable_object}, \var{args}, \var{kw})}
or \samp{\var{callable_object}(*\var{args}, **\var{kw})}.
- \bifuncindex{apply}
\versionadded{2.2}
\end{cfuncdesc}
@@ -248,7 +247,6 @@ determination.
success, or \NULL{} on failure. This is the equivalent of the
Python expression \samp{apply(\var{callable_object}, \var{args})} or
\samp{\var{callable_object}(*\var{args})}.
- \bifuncindex{apply}
\end{cfuncdesc}
\begin{cfuncdesc}{PyObject*}{PyObject_CallFunction}{PyObject *callable,
@@ -260,7 +258,6 @@ determination.
result of the call on success, or \NULL{} on failure. This is the
equivalent of the Python expression \samp{apply(\var{callable},
\var{args})} or \samp{\var{callable}(*\var{args})}.
- \bifuncindex{apply}
\end{cfuncdesc}
diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex
index c75c172..0be3aa9 100644
--- a/Doc/lib/libfuncs.tex
+++ b/Doc/lib/libfuncs.tex
@@ -1169,26 +1169,6 @@ bypass these functions without concerns about missing something important.
\setindexsubitem{(non-essential built-in functions)}
-\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 sequence. The \var{function} is
- called with \var{args} as the argument list; the number of arguments
- is the length of the tuple.
- If the optional \var{keywords} argument is present, it must be a
- dictionary whose keys are strings. It specifies keyword arguments
- to be added to the end of the argument list.
- Calling \function{apply()} is different from just calling
- \code{\var{function}(\var{args})}, since in that case there is always
- exactly one argument. The use of \function{apply()} is equivalent
- to \code{\var{function}(*\var{args}, **\var{keywords})}.
- Use of \function{apply()} is not necessary since the ``extended call
- syntax,'' as used in the last example, is completely equivalent.
-
- \deprecated{2.3}{Use the extended call syntax instead, as described
- above.}
-\end{funcdesc}
-
\begin{funcdesc}{buffer}{object\optional{, offset\optional{, size}}}
The \var{object} argument must be an object that supports the buffer
call interface (such as strings, arrays, and buffers). A new buffer