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

Skip to content

Commit 8379ed5

Browse files
committed
Updated because of new opcodes introduced for "fast" local variables.
1 parent 5b72218 commit 8379ed5

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

Lib/dis.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ def jabs_op(name, op):
9999
def_op('UNARY_NOT', 12)
100100
def_op('UNARY_CONVERT', 13)
101101
def_op('UNARY_CALL', 14)
102+
def_op('UNARY_INVERT', 15)
102103

103104
def_op('BINARY_MULTIPLY', 20)
104105
def_op('BINARY_DIVIDE', 21)
@@ -134,8 +135,7 @@ def jabs_op(name, op):
134135
def_op('RAISE_EXCEPTION', 81)
135136
def_op('LOAD_LOCALS', 82)
136137
def_op('RETURN_VALUE', 83)
137-
def_op('REQUIRE_ARGS', 84)
138-
def_op('REFUSE_ARGS', 85)
138+
139139
def_op('BUILD_FUNCTION', 86)
140140
def_op('POP_BLOCK', 87)
141141
def_op('END_FINALLY', 88)
@@ -152,6 +152,7 @@ def jabs_op(name, op):
152152
name_op('DELETE_ATTR', 96) # ""
153153
name_op('STORE_GLOBAL', 97) # ""
154154
name_op('DELETE_GLOBAL', 98) # ""
155+
name_op('UNPACK_VARARG', 99) # Minimal number of arguments
155156

156157
def_op('LOAD_CONST', 100) # Index in const list
157158
hasconst.append(100)
@@ -177,5 +178,11 @@ def jabs_op(name, op):
177178
jrel_op('SETUP_EXCEPT', 121) # ""
178179
jrel_op('SETUP_FINALLY', 122) # ""
179180

181+
def_op('RESERVE_FAST', 123) # Number of local variables
182+
hasconst.append(123)
183+
def_op('LOAD_FAST', 124) # Local variable number
184+
def_op('STORE_FAST', 125) # Local variable number
185+
def_op('DELETE_FAST', 126) # Local variable number
186+
180187
def_op('SET_LINENO', 127) # Current line number
181188
SET_LINENO = 127

0 commit comments

Comments
 (0)