Issue #9225: Remove the ROT_FOUR and DUP_TOPX opcode, the latter replaced
by the new (and simpler) DUP_TOP_TWO. Performance isn't changed, but
our bytecode is a bit simplified. Patch by Demur Rumed.
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index e5c1c1a..a377fc8 100644
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -184,17 +184,17 @@
three.
-.. opcode:: ROT_FOUR
-
- Lifts second, third and forth stack item one position up, moves top down to
- position four.
-
-
.. opcode:: DUP_TOP
Duplicates the reference on top of the stack.
+.. opcode:: DUP_TOP_TWO
+
+ Duplicates the two references on top of the stack, leaving them in the
+ same order.
+
+
**Unary operations**
Unary operations take the top of the stack, apply the operation, and push the
@@ -531,12 +531,6 @@
are put onto the stack right-to-left.
-.. opcode:: DUP_TOPX (count)
-
- Duplicate *count* items, keeping them in the same order. Due to implementation
- limits, *count* should be between 1 and 5 inclusive.
-
-
.. opcode:: STORE_ATTR (namei)
Implements ``TOS.name = TOS1``, where *namei* is the index of name in