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
5ac22308
Commit
5ac22308
authored
Jul 20, 2008
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#3400: document new 3.0 opcodes.
parent
dbdbf759
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
Doc/library/dis.rst
Doc/library/dis.rst
+20
-2
No files found.
Doc/library/dis.rst
View file @
5ac22308
...
...
@@ -414,8 +414,8 @@ Miscellaneous opcodes.
.. opcode:: LOAD_BUILD_CLASS ()
Pushes
builtins.__build_class__ onto the stack. It is later called by
```CALL_FUNCTION`
` to construct a class.
Pushes
:func:`builtins.__build_class__` onto the stack. It is later called
by :opcode:`CALL_FUNCTION
` to construct a class.
.. opcode:: WITH_CLEANUP ()
...
...
@@ -440,6 +440,12 @@ Miscellaneous opcodes.
.. XXX explain the WHY stuff!
.. opcode:: STORE_LOCALS
Pops TOS from the stack and stores it as the current frame's ``f_locals``.
This is used in class construction.
All of the following opcodes expect arguments. An argument is two bytes, with
the more significant byte last.
...
...
@@ -462,6 +468,18 @@ the more significant byte last.
right-to-left.
.. opcode:: UNPACK_EX (counts)
Implements assignment with a starred target: Unpacks an iterable in TOS into
individual values, where the total number of values can be smaller than the
number of items in the iterable: one the new values will be a list of all
leftover items.
The low byte of *counts* is the number of values before the list value, the
high byte of *counts* the number of values after it. The resulting values
are put onto the stack right-to-left.
.. opcode:: DUP_TOPX (count)
Duplicate *count* items, keeping them in the same order. Due to implementation
...
...
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