]> granicus.if.org Git - python/commitdiff
Correct description of BUILD_SLICE.
authorGuido van Rossum <guido@python.org>
Thu, 12 Feb 1998 03:53:02 +0000 (03:53 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 12 Feb 1998 03:53:02 +0000 (03:53 +0000)
Doc/lib/libdis.tex
Doc/libdis.tex

index 2358b1dc270ef8c18eb72dfb6deb9993ff57e6af..2e4442b5ec6a24cfdd9a171d3d082041a3e0c2a8 100644 (file)
@@ -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}
-
-
index 2358b1dc270ef8c18eb72dfb6deb9993ff57e6af..2e4442b5ec6a24cfdd9a171d3d082041a3e0c2a8 100644 (file)
@@ -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}
-
-