Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
90876885
Commit
90876885
authored
Aug 21, 2000
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Describe the new PRINT_ITEM_TO and PRINT_NEWLINE_TO opcodes.
parent
203da6df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
Doc/lib/libdis.tex
Doc/lib/libdis.tex
+12
-2
No files found.
Doc/lib/libdis.tex
View file @
90876885
...
...
@@ -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}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment