Commit da623981 authored by Guido van Rossum's avatar Guido van Rossum

Correct description of BUILD_SLICE.

parent 63221124
...@@ -504,8 +504,8 @@ default parameters, which are found below TOS. ...@@ -504,8 +504,8 @@ default parameters, which are found below TOS.
\end{opcodedesc} \end{opcodedesc}
\begin{opcodedesc}{BUILD_SLICE}{argc} \begin{opcodedesc}{BUILD_SLICE}{argc}
Pushes a slice object on the stack. If \var{argc} is three, creates Pushes a slice object on the stack. \var{argc} must be 2 or 3. If it
\code{TOS3[TOS2:TOS1:TOS]}. Otherwise, expects three arguments. 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} \end{opcodedesc}
...@@ -504,8 +504,8 @@ default parameters, which are found below TOS. ...@@ -504,8 +504,8 @@ default parameters, which are found below TOS.
\end{opcodedesc} \end{opcodedesc}
\begin{opcodedesc}{BUILD_SLICE}{argc} \begin{opcodedesc}{BUILD_SLICE}{argc}
Pushes a slice object on the stack. If \var{argc} is three, creates Pushes a slice object on the stack. \var{argc} must be 2 or 3. If it
\code{TOS3[TOS2:TOS1:TOS]}. Otherwise, expects three arguments. 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} \end{opcodedesc}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment