summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Doc/lib/libdis.tex14
1 files changed, 12 insertions, 2 deletions
diff --git a/Doc/lib/libdis.tex b/Doc/lib/libdis.tex
index 984ef1c..e0698ff 100644
--- a/Doc/lib/libdis.tex
+++ b/Doc/lib/libdis.tex
@@ -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}