@@ -168,13 +168,13 @@ def bug1333982(x=[]):
168168 %3d RESUME 0
169169
170170%3d LOAD_ASSERTION_ERROR
171- LOAD_CONST 2 (<code object <listcomp> at 0x..., file "%s", line %d>)
171+ LOAD_CONST 1 (<code object <listcomp> at 0x..., file "%s", line %d>)
172172 MAKE_FUNCTION 0
173173 LOAD_FAST 0 (x)
174174 GET_ITER
175175 CALL 0
176176
177- %3d LOAD_CONST 3 (1)
177+ %3d LOAD_CONST 2 (1)
178178
179179%3d BINARY_OP 0 (+)
180180 CALL 0
@@ -1446,9 +1446,9 @@ def jumpy():
14461446# End fodder for opinfo generation tests
14471447expected_outer_line = 1
14481448_line_offset = outer .__code__ .co_firstlineno - 1
1449- code_object_f = outer .__code__ .co_consts [3 ]
1449+ code_object_f = outer .__code__ .co_consts [1 ]
14501450expected_f_line = code_object_f .co_firstlineno - _line_offset
1451- code_object_inner = code_object_f .co_consts [3 ]
1451+ code_object_inner = code_object_f .co_consts [1 ]
14521452expected_inner_line = code_object_inner .co_firstlineno - _line_offset
14531453expected_jumpy_line = 1
14541454
@@ -1485,21 +1485,21 @@ def _prepare_test_cases():
14851485 Instruction (opname = 'MAKE_CELL' , opcode = 135 , arg = 0 , argval = 'a' , argrepr = 'a' , offset = 0 , starts_line = None , is_jump_target = False , positions = None ),
14861486 Instruction (opname = 'MAKE_CELL' , opcode = 135 , arg = 1 , argval = 'b' , argrepr = 'b' , offset = 2 , starts_line = None , is_jump_target = False , positions = None ),
14871487 Instruction (opname = 'RESUME' , opcode = 151 , arg = 0 , argval = 0 , argrepr = '' , offset = 4 , starts_line = 1 , is_jump_target = False , positions = None ),
1488- Instruction (opname = 'LOAD_CONST' , opcode = 100 , arg = 7 , argval = (3 , 4 ), argrepr = '(3, 4)' , offset = 6 , starts_line = 2 , is_jump_target = False , positions = None ),
1488+ Instruction (opname = 'LOAD_CONST' , opcode = 100 , arg = 5 , argval = (3 , 4 ), argrepr = '(3, 4)' , offset = 6 , starts_line = 2 , is_jump_target = False , positions = None ),
14891489 Instruction (opname = 'LOAD_CLOSURE' , opcode = 136 , arg = 0 , argval = 'a' , argrepr = 'a' , offset = 8 , starts_line = None , is_jump_target = False , positions = None ),
14901490 Instruction (opname = 'LOAD_CLOSURE' , opcode = 136 , arg = 1 , argval = 'b' , argrepr = 'b' , offset = 10 , starts_line = None , is_jump_target = False , positions = None ),
14911491 Instruction (opname = 'BUILD_TUPLE' , opcode = 102 , arg = 2 , argval = 2 , argrepr = '' , offset = 12 , starts_line = None , is_jump_target = False , positions = None ),
1492- Instruction (opname = 'LOAD_CONST' , opcode = 100 , arg = 3 , argval = code_object_f , argrepr = repr (code_object_f ), offset = 14 , starts_line = None , is_jump_target = False , positions = None ),
1492+ Instruction (opname = 'LOAD_CONST' , opcode = 100 , arg = 1 , argval = code_object_f , argrepr = repr (code_object_f ), offset = 14 , starts_line = None , is_jump_target = False , positions = None ),
14931493 Instruction (opname = 'MAKE_FUNCTION' , opcode = 132 , arg = 9 , argval = 9 , argrepr = 'defaults, closure' , offset = 16 , starts_line = None , is_jump_target = False , positions = None ),
14941494 Instruction (opname = 'STORE_FAST' , opcode = 125 , arg = 2 , argval = 'f' , argrepr = 'f' , offset = 18 , starts_line = None , is_jump_target = False , positions = None ),
14951495 Instruction (opname = 'LOAD_GLOBAL' , opcode = 116 , arg = 1 , argval = 'print' , argrepr = 'NULL + print' , offset = 20 , starts_line = 7 , is_jump_target = False , positions = None ),
14961496 Instruction (opname = 'LOAD_DEREF' , opcode = 137 , arg = 0 , argval = 'a' , argrepr = 'a' , offset = 32 , starts_line = None , is_jump_target = False , positions = None ),
14971497 Instruction (opname = 'LOAD_DEREF' , opcode = 137 , arg = 1 , argval = 'b' , argrepr = 'b' , offset = 34 , starts_line = None , is_jump_target = False , positions = None ),
1498- Instruction (opname = 'LOAD_CONST' , opcode = 100 , arg = 4 , argval = '' , argrepr = "''" , offset = 36 , starts_line = None , is_jump_target = False , positions = None ),
1499- Instruction (opname = 'LOAD_CONST' , opcode = 100 , arg = 5 , argval = 1 , argrepr = '1' , offset = 38 , starts_line = None , is_jump_target = False , positions = None ),
1498+ Instruction (opname = 'LOAD_CONST' , opcode = 100 , arg = 2 , argval = '' , argrepr = "''" , offset = 36 , starts_line = None , is_jump_target = False , positions = None ),
1499+ Instruction (opname = 'LOAD_CONST' , opcode = 100 , arg = 3 , argval = 1 , argrepr = '1' , offset = 38 , starts_line = None , is_jump_target = False , positions = None ),
15001500 Instruction (opname = 'BUILD_LIST' , opcode = 103 , arg = 0 , argval = 0 , argrepr = '' , offset = 40 , starts_line = None , is_jump_target = False , positions = None ),
15011501 Instruction (opname = 'BUILD_MAP' , opcode = 105 , arg = 0 , argval = 0 , argrepr = '' , offset = 42 , starts_line = None , is_jump_target = False , positions = None ),
1502- Instruction (opname = 'LOAD_CONST' , opcode = 100 , arg = 6 , argval = 'Hello world!' , argrepr = "'Hello world!'" , offset = 44 , starts_line = None , is_jump_target = False , positions = None ),
1502+ Instruction (opname = 'LOAD_CONST' , opcode = 100 , arg = 4 , argval = 'Hello world!' , argrepr = "'Hello world!'" , offset = 44 , starts_line = None , is_jump_target = False , positions = None ),
15031503 Instruction (opname = 'CALL' , opcode = 171 , arg = 7 , argval = 7 , argrepr = '' , offset = 46 , starts_line = None , is_jump_target = False , positions = None ),
15041504 Instruction (opname = 'POP_TOP' , opcode = 1 , arg = None , argval = None , argrepr = '' , offset = 56 , starts_line = None , is_jump_target = False , positions = None ),
15051505 Instruction (opname = 'LOAD_FAST' , opcode = 124 , arg = 2 , argval = 'f' , argrepr = 'f' , offset = 58 , starts_line = 8 , is_jump_target = False , positions = None ),
@@ -1511,13 +1511,13 @@ def _prepare_test_cases():
15111511 Instruction (opname = 'MAKE_CELL' , opcode = 135 , arg = 0 , argval = 'c' , argrepr = 'c' , offset = 2 , starts_line = None , is_jump_target = False , positions = None ),
15121512 Instruction (opname = 'MAKE_CELL' , opcode = 135 , arg = 1 , argval = 'd' , argrepr = 'd' , offset = 4 , starts_line = None , is_jump_target = False , positions = None ),
15131513 Instruction (opname = 'RESUME' , opcode = 151 , arg = 0 , argval = 0 , argrepr = '' , offset = 6 , starts_line = 2 , is_jump_target = False , positions = None ),
1514- Instruction (opname = 'LOAD_CONST' , opcode = 100 , arg = 4 , argval = (5 , 6 ), argrepr = '(5, 6)' , offset = 8 , starts_line = 3 , is_jump_target = False , positions = None ),
1514+ Instruction (opname = 'LOAD_CONST' , opcode = 100 , arg = 2 , argval = (5 , 6 ), argrepr = '(5, 6)' , offset = 8 , starts_line = 3 , is_jump_target = False , positions = None ),
15151515 Instruction (opname = 'LOAD_CLOSURE' , opcode = 136 , arg = 3 , argval = 'a' , argrepr = 'a' , offset = 10 , starts_line = None , is_jump_target = False , positions = None ),
15161516 Instruction (opname = 'LOAD_CLOSURE' , opcode = 136 , arg = 4 , argval = 'b' , argrepr = 'b' , offset = 12 , starts_line = None , is_jump_target = False , positions = None ),
15171517 Instruction (opname = 'LOAD_CLOSURE' , opcode = 136 , arg = 0 , argval = 'c' , argrepr = 'c' , offset = 14 , starts_line = None , is_jump_target = False , positions = None ),
15181518 Instruction (opname = 'LOAD_CLOSURE' , opcode = 136 , arg = 1 , argval = 'd' , argrepr = 'd' , offset = 16 , starts_line = None , is_jump_target = False , positions = None ),
15191519 Instruction (opname = 'BUILD_TUPLE' , opcode = 102 , arg = 4 , argval = 4 , argrepr = '' , offset = 18 , starts_line = None , is_jump_target = False , positions = None ),
1520- Instruction (opname = 'LOAD_CONST' , opcode = 100 , arg = 3 , argval = code_object_inner , argrepr = repr (code_object_inner ), offset = 20 , starts_line = None , is_jump_target = False , positions = None ),
1520+ Instruction (opname = 'LOAD_CONST' , opcode = 100 , arg = 1 , argval = code_object_inner , argrepr = repr (code_object_inner ), offset = 20 , starts_line = None , is_jump_target = False , positions = None ),
15211521 Instruction (opname = 'MAKE_FUNCTION' , opcode = 132 , arg = 9 , argval = 9 , argrepr = 'defaults, closure' , offset = 22 , starts_line = None , is_jump_target = False , positions = None ),
15221522 Instruction (opname = 'STORE_FAST' , opcode = 125 , arg = 2 , argval = 'inner' , argrepr = 'inner' , offset = 24 , starts_line = None , is_jump_target = False , positions = None ),
15231523 Instruction (opname = 'LOAD_GLOBAL' , opcode = 116 , arg = 1 , argval = 'print' , argrepr = 'NULL + print' , offset = 26 , starts_line = 5 , is_jump_target = False , positions = None ),
0 commit comments