Describe the new PRINT_ITEM_TO and PRINT_NEWLINE_TO opcodes.
This commit is contained in:
parent
203da6dfe4
commit
9087688581
|
@ -277,8 +277,13 @@ expression statement is terminated with \code{POP_STACK}.
|
|||
\end{opcodedesc}
|
||||
|
||||
\begin{opcodedesc}{PRINT_ITEM}{}
|
||||
Prints TOS. There is one such instruction for
|
||||
each item in the \keyword{print} statement.
|
||||
Prints TOS to the file-like object bound to \code{sys.stdout}. There
|
||||
is one such instruction for each item in the \keyword{print} statement.
|
||||
\end{opcodedesc}
|
||||
|
||||
\begin{opcodedesc}{PRINT_ITEM_TO}{}
|
||||
Like \code{PRINT_ITEM}, but prints the item second from TOS to the
|
||||
file-like object at TOS. This is used by the extended print statement.
|
||||
\end{opcodedesc}
|
||||
|
||||
\begin{opcodedesc}{PRINT_NEWLINE}{}
|
||||
|
@ -287,6 +292,11 @@ last operation of a \keyword{print} statement, unless the statement
|
|||
ends with a comma.
|
||||
\end{opcodedesc}
|
||||
|
||||
\begin{opcodedesc}{PRINT_NEWLINE_TO}{}
|
||||
Like \code{PRINT_NEWLINE}, but prints the new line on the file-like
|
||||
object on the TOS. This is used by the extended print statement.
|
||||
\end{opcodedesc}
|
||||
|
||||
\begin{opcodedesc}{BREAK_LOOP}{}
|
||||
Terminates a loop due to a \keyword{break} statement.
|
||||
\end{opcodedesc}
|
||||
|
|
Loading…
Reference in New Issue