mirror of
https://github.com/python/cpython.git
synced 2025-09-09 02:11:51 +00:00
* Remove PRINT_ITEM(_TO), PRINT_NEWLINE(_TO) opcodes.
* Fix some docstrings and one Print -> print. * Fix test_{class,code,descrtut,dis,extcall,parser,popen,pkg,subprocess,syntax,traceback}. These were the ones that generated code with a print statement. In most remaining failing tests there's an issue with the soft space.
This commit is contained in:
parent
08c47ba0df
commit
88fc6646d1
31 changed files with 159 additions and 553 deletions
|
@ -353,27 +353,6 @@ removed from the stack and printed. In non-interactive mode, an
|
|||
expression statement is terminated with \code{POP_STACK}.
|
||||
\end{opcodedesc}
|
||||
|
||||
\begin{opcodedesc}{PRINT_ITEM}{}
|
||||
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}{}
|
||||
Prints a new line on \code{sys.stdout}. This is generated as the
|
||||
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…
Add table
Add a link
Reference in a new issue