summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-02-12 03:53:02 (GMT)
committerGuido van Rossum <guido@python.org>1998-02-12 03:53:02 (GMT)
commitda623981396be2d69f40114c10eddd40e73751b9 (patch)
treec96ce65a96ccc4eaa0c4a9332c219ff2dd901e21 /Doc
parent63221124c0319b542a2e53fb9c8e8d44ba0d43a1 (diff)
downloadcpython-da623981396be2d69f40114c10eddd40e73751b9.zip
cpython-da623981396be2d69f40114c10eddd40e73751b9.tar.gz
cpython-da623981396be2d69f40114c10eddd40e73751b9.tar.bz2
Correct description of BUILD_SLICE.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libdis.tex8
-rw-r--r--Doc/libdis.tex8
2 files changed, 8 insertions, 8 deletions
diff --git a/Doc/lib/libdis.tex b/Doc/lib/libdis.tex
index 2358b1d..2e4442b 100644
--- a/Doc/lib/libdis.tex
+++ b/Doc/lib/libdis.tex
@@ -504,8 +504,8 @@ default parameters, which are found below TOS.
\end{opcodedesc}
\begin{opcodedesc}{BUILD_SLICE}{argc}
-Pushes a slice object on the stack. If \var{argc} is three, creates
-\code{TOS3[TOS2:TOS1:TOS]}. Otherwise, expects three arguments.
+Pushes a slice object on the stack. \var{argc} must be 2 or 3. If it
+is 2, \code{slice(TOS1, TOS)} is pushed; if it is 3,
+\code{slice(TOS2, TOS1, TOS)} is pushed.
+See the \code{slice()} built-in function.
\end{opcodedesc}
-
-
diff --git a/Doc/libdis.tex b/Doc/libdis.tex
index 2358b1d..2e4442b 100644
--- a/Doc/libdis.tex
+++ b/Doc/libdis.tex
@@ -504,8 +504,8 @@ default parameters, which are found below TOS.
\end{opcodedesc}
\begin{opcodedesc}{BUILD_SLICE}{argc}
-Pushes a slice object on the stack. If \var{argc} is three, creates
-\code{TOS3[TOS2:TOS1:TOS]}. Otherwise, expects three arguments.
+Pushes a slice object on the stack. \var{argc} must be 2 or 3. If it
+is 2, \code{slice(TOS1, TOS)} is pushed; if it is 3,
+\code{slice(TOS2, TOS1, TOS)} is pushed.
+See the \code{slice()} built-in function.
\end{opcodedesc}
-
-