summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2000-08-24 22:44:53 (GMT)
committerThomas Wouters <thomas@python.org>2000-08-24 22:44:53 (GMT)
commit6af3b370216a601ca4c266e73f88397fc74fd15a (patch)
tree8b6e1ab4fdc61cc2a3a20e7dbce28ec4ee7720d5 /Lib
parent6d63adfbb7e97b218bede1052d3826b3461e9c59 (diff)
downloadcpython-6af3b370216a601ca4c266e73f88397fc74fd15a.zip
cpython-6af3b370216a601ca4c266e73f88397fc74fd15a.tar.gz
cpython-6af3b370216a601ca4c266e73f88397fc74fd15a.tar.bz2
Add missing opcodes. Thanx to jeremy for reminding me ;)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/dis.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/dis.py b/Lib/dis.py
index 713d7aa..8f74add 100644
--- a/Lib/dis.py
+++ b/Lib/dis.py
@@ -150,6 +150,7 @@ def_op('POP_TOP', 1)
def_op('ROT_TWO', 2)
def_op('ROT_THREE', 3)
def_op('DUP_TOP', 4)
+def_op('ROT_FOUR', 5)
def_op('UNARY_POSITIVE', 10)
def_op('UNARY_NEGATIVE', 11)
@@ -228,7 +229,7 @@ name_op('STORE_ATTR', 95) # Index in name list
name_op('DELETE_ATTR', 96) # ""
name_op('STORE_GLOBAL', 97) # ""
name_op('DELETE_GLOBAL', 98) # ""
-
+def_op('DUP_TOPX', 99) # number of items to duplicate
def_op('LOAD_CONST', 100) # Index in const list
hasconst.append(100)
name_op('LOAD_NAME', 101) # Index in name list