Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6af3b37

Browse files
committed
Add missing opcodes. Thanx to jeremy for reminding me ;)
1 parent 6d63adf commit 6af3b37

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/dis.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ def jabs_op(name, op):
150150
def_op('ROT_TWO', 2)
151151
def_op('ROT_THREE', 3)
152152
def_op('DUP_TOP', 4)
153+
def_op('ROT_FOUR', 5)
153154

154155
def_op('UNARY_POSITIVE', 10)
155156
def_op('UNARY_NEGATIVE', 11)
@@ -228,7 +229,7 @@ def jabs_op(name, op):
228229
name_op('DELETE_ATTR', 96) # ""
229230
name_op('STORE_GLOBAL', 97) # ""
230231
name_op('DELETE_GLOBAL', 98) # ""
231-
232+
def_op('DUP_TOPX', 99) # number of items to duplicate
232233
def_op('LOAD_CONST', 100) # Index in const list
233234
hasconst.append(100)
234235
name_op('LOAD_NAME', 101) # Index in name list

0 commit comments

Comments
 (0)