summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libdis.tex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-08-17 22:19:26 (GMT)
committerFred Drake <fdrake@acm.org>2000-08-17 22:19:26 (GMT)
commit25699f99f413ee8d7b085ed77154d56282de0537 (patch)
tree73f5f6b1d796475e5359b49c106c018e8e6832ea /Doc/lib/libdis.tex
parent5119a0bc2bc91be62476665a4cac8408be085a43 (diff)
downloadcpython-25699f99f413ee8d7b085ed77154d56282de0537.zip
cpython-25699f99f413ee8d7b085ed77154d56282de0537.tar.gz
cpython-25699f99f413ee8d7b085ed77154d56282de0537.tar.bz2
Martin v. Loewis <martin@loewis.home.cs.tu-berlin.de>:
Document opcodes added to support extended call syntax.
Diffstat (limited to 'Doc/lib/libdis.tex')
-rw-r--r--Doc/lib/libdis.tex19
1 files changed, 19 insertions, 0 deletions
diff --git a/Doc/lib/libdis.tex b/Doc/lib/libdis.tex
index bf1fc63..e80515c 100644
--- a/Doc/lib/libdis.tex
+++ b/Doc/lib/libdis.tex
@@ -513,3 +513,22 @@ is 2, \code{slice(TOS1, TOS)} is pushed; if it is 3,
\code{slice(TOS2, TOS1, TOS)} is pushed.
See the \code{slice()}\bifuncindex{slice} built-in function.
\end{opcodedesc}
+
+\begin{opcodedesc}{CALL_FUNCTION_VAR}{argc}
+Calls a function. \var{argc} is interpreted as in \code{CALL_FUNCTION}.
+The top element on the stack contains the variable argument list, followed
+by keyword and positional arguments.
+\end{opcodedesc}
+
+\begin{opcodedesc}{CALL_FUNCTION_KW}{argc}
+Calls a function. \var{argc} is interpreted as in \code{CALL_FUNCTION}.
+The top element on the stack contains the keyword arguments dictionary,
+followed by explicit keyword and positional arguments.
+\end{opcodedesc}
+
+\begin{opcodedesc}{CALL_FUNCTION_VAR_KW}{argc}
+Calls a function. \var{argc} is interpreted as in
+\code{CALL_FUNCTION}. The top element on the stack contains the
+keyword arguments dictionary, followed by the variable-arguments
+tuple, followed by explicit keyword and positional arguments.
+\end{opcodedesc}