diff options
author | Barry Warsaw <barry@python.org> | 2000-08-21 17:19:00 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2000-08-21 17:19:00 (GMT) |
commit | 908768858174326cad3b3efaf785075fb440f73f (patch) | |
tree | a8b594f6959745ac0ac34aeb3de151b707ea26d0 /Doc/lib/libdis.tex | |
parent | 203da6dfe4e8aefbaa32c97072bdd530505cbca6 (diff) | |
download | cpython-908768858174326cad3b3efaf785075fb440f73f.zip cpython-908768858174326cad3b3efaf785075fb440f73f.tar.gz cpython-908768858174326cad3b3efaf785075fb440f73f.tar.bz2 |
Describe the new PRINT_ITEM_TO and PRINT_NEWLINE_TO opcodes.
Diffstat (limited to 'Doc/lib/libdis.tex')
-rw-r--r-- | Doc/lib/libdis.tex | 14 |
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} |