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
304faf94
Commit
304faf94
authored
Aug 18, 2000
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a markup error that caused formatting to fail.
Lots of minor markup adjustments as well.
parent
59ecafa5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
16 deletions
+17
-16
Doc/lib/libdis.tex
Doc/lib/libdis.tex
+17
-16
No files found.
Doc/lib/libdis.tex
View file @
304faf94
...
...
@@ -278,17 +278,17 @@ expression statement is terminated with \code{POP_STACK}.
\begin{opcodedesc}
{
PRINT
_
ITEM
}{}
Prints TOS. There is one such instruction for
each item in the
print
statement.
each item in the
\keyword
{
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
print statement, unless the statement ends
with a comma.
last operation of a
\keyword
{
print
}
statement, unless the statement
ends
with a comma.
\end{opcodedesc}
\begin{opcodedesc}
{
BREAK
_
LOOP
}{}
Terminates a loop due to a
break
statement.
Terminates a loop due to a
\keyword
{
break
}
statement.
\end{opcodedesc}
\begin{opcodedesc}
{
LOAD
_
LOCALS
}{}
...
...
@@ -302,14 +302,14 @@ Returns with TOS to the caller of the function.
\end{opcodedesc}
\begin{opcodedesc}
{
IMPORT
_
STAR
}{}
Loads all symbols not starting with
'
_
'
directly from the module TOS
Loads all symbols not starting with
\character
{_}
directly from the module TOS
to the local namespace. The module is popped after loading all names.
This opcode implements
'from module import *'
.
\
begin
{opcodedesc}
This opcode implements
\code
{
from module import *
}
.
\
end
{opcodedesc}
\begin{opcodedesc}
{
EXEC
_
STMT
}{}
Implements
\code
{
exec TOS2,TOS1,TOS
}
. The compiler fills
missing optional parameters with
None
.
missing optional parameters with
\code
{
None
}
.
\end{opcodedesc}
\begin{opcodedesc}
{
POP
_
BLOCK
}{}
...
...
@@ -318,9 +318,9 @@ stack of blocks, denoting nested loops, try statements, and such.
\end{opcodedesc}
\begin{opcodedesc}
{
END
_
FINALLY
}{}
Terminates a
finally-block. The interpreter recalls whether the
exception has to be re-raised, or whether the function returns,
and continues with the outer-next block.
Terminates a
\keyword
{
finally
}
clause. The interpreter recalls
whether the exception has to be re-raised, or whether the function
returns,
and continues with the outer-next block.
\end{opcodedesc}
\begin{opcodedesc}
{
BUILD
_
CLASS
}{}
...
...
@@ -396,12 +396,12 @@ Works as \code{BUILD_TUPLE}, but creates a list.
\end{opcodedesc}
\begin{opcodedesc}
{
BUILD
_
MAP
}{
zero
}
Pushes a
n empty dictionary object onto the stack. The argument is ignored
and set to zero by the compiler.
Pushes a
new empty dictionary object onto the stack. The argument is
ignored
and set to zero by the compiler.
\end{opcodedesc}
\begin{opcodedesc}
{
LOAD
_
ATTR
}{
namei
}
Replaces TOS with
\code
{
getattr(TOS,co
_
names[
\var
{
namei
}
]
}
.
Replaces TOS with
\code
{
getattr(TOS,
co
_
names[
\var
{
namei
}
]
}
.
\end{opcodedesc}
\begin{opcodedesc}
{
COMPARE
_
OP
}{
opname
}
...
...
@@ -493,7 +493,7 @@ Sets the current line number to \var{lineno}.
\begin{opcodedesc}
{
RAISE
_
VARARGS
}{
argc
}
Raises an exception.
\var
{
argc
}
indicates the number of parameters
to the raise statement, ranging from
1
to 3. The handler will find
to the raise statement, ranging from
0
to 3. The handler will find
the traceback as TOS2, the parameter as TOS1, and the exception
as TOS.
\end{opcodedesc}
...
...
@@ -518,7 +518,8 @@ default parameters, which are found below TOS.
Pushes a slice object on the stack.
\var
{
argc
}
must be 2 or 3. If it
is 2,
\code
{
slice(TOS1, TOS)
}
is pushed; if it is 3,
\code
{
slice(TOS2, TOS1, TOS)
}
is pushed.
See the
\code
{
slice()
}
\bifuncindex
{
slice
}
built-in function.
See the
\code
{
slice()
}
\bifuncindex
{
slice
}
built-in function for more
information.
\end{opcodedesc}
\begin{opcodedesc}
{
CALL
_
FUNCTION
_
VAR
}{
argc
}
...
...
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