]> granicus.if.org Git - python/commitdiff
Add missing opcodes. Thanx to jeremy for reminding me ;)
authorThomas Wouters <thomas@python.org>
Thu, 24 Aug 2000 22:44:53 +0000 (22:44 +0000)
committerThomas Wouters <thomas@python.org>
Thu, 24 Aug 2000 22:44:53 +0000 (22:44 +0000)
Lib/dis.py

index 713d7aa68201a1d3185874de010f4c277a35882d..8f74add59f3f2d0bdcab924b6b3476abde9e8fea 100644 (file)
@@ -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