@@ -168,13 +168,13 @@ def bug1333982(x=[]):
168
168
%3d RESUME 0
169
169
170
170
%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>)
172
172
MAKE_FUNCTION 0
173
173
LOAD_FAST 0 (x)
174
174
GET_ITER
175
175
CALL 0
176
176
177
- %3d LOAD_CONST 3 (1)
177
+ %3d LOAD_CONST 2 (1)
178
178
179
179
%3d BINARY_OP 0 (+)
180
180
CALL 0
@@ -1446,9 +1446,9 @@ def jumpy():
1446
1446
# End fodder for opinfo generation tests
1447
1447
expected_outer_line = 1
1448
1448
_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 ]
1450
1450
expected_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 ]
1452
1452
expected_inner_line = code_object_inner .co_firstlineno - _line_offset
1453
1453
expected_jumpy_line = 1
1454
1454
@@ -1485,21 +1485,21 @@ def _prepare_test_cases():
1485
1485
Instruction (opname = 'MAKE_CELL' , opcode = 135 , arg = 0 , argval = 'a' , argrepr = 'a' , offset = 0 , starts_line = None , is_jump_target = False , positions = None ),
1486
1486
Instruction (opname = 'MAKE_CELL' , opcode = 135 , arg = 1 , argval = 'b' , argrepr = 'b' , offset = 2 , starts_line = None , is_jump_target = False , positions = None ),
1487
1487
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 ),
1489
1489
Instruction (opname = 'LOAD_CLOSURE' , opcode = 136 , arg = 0 , argval = 'a' , argrepr = 'a' , offset = 8 , starts_line = None , is_jump_target = False , positions = None ),
1490
1490
Instruction (opname = 'LOAD_CLOSURE' , opcode = 136 , arg = 1 , argval = 'b' , argrepr = 'b' , offset = 10 , starts_line = None , is_jump_target = False , positions = None ),
1491
1491
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 ),
1493
1493
Instruction (opname = 'MAKE_FUNCTION' , opcode = 132 , arg = 9 , argval = 9 , argrepr = 'defaults, closure' , offset = 16 , starts_line = None , is_jump_target = False , positions = None ),
1494
1494
Instruction (opname = 'STORE_FAST' , opcode = 125 , arg = 2 , argval = 'f' , argrepr = 'f' , offset = 18 , starts_line = None , is_jump_target = False , positions = None ),
1495
1495
Instruction (opname = 'LOAD_GLOBAL' , opcode = 116 , arg = 1 , argval = 'print' , argrepr = 'NULL + print' , offset = 20 , starts_line = 7 , is_jump_target = False , positions = None ),
1496
1496
Instruction (opname = 'LOAD_DEREF' , opcode = 137 , arg = 0 , argval = 'a' , argrepr = 'a' , offset = 32 , starts_line = None , is_jump_target = False , positions = None ),
1497
1497
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 ),
1500
1500
Instruction (opname = 'BUILD_LIST' , opcode = 103 , arg = 0 , argval = 0 , argrepr = '' , offset = 40 , starts_line = None , is_jump_target = False , positions = None ),
1501
1501
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 ),
1503
1503
Instruction (opname = 'CALL' , opcode = 171 , arg = 7 , argval = 7 , argrepr = '' , offset = 46 , starts_line = None , is_jump_target = False , positions = None ),
1504
1504
Instruction (opname = 'POP_TOP' , opcode = 1 , arg = None , argval = None , argrepr = '' , offset = 56 , starts_line = None , is_jump_target = False , positions = None ),
1505
1505
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():
1511
1511
Instruction (opname = 'MAKE_CELL' , opcode = 135 , arg = 0 , argval = 'c' , argrepr = 'c' , offset = 2 , starts_line = None , is_jump_target = False , positions = None ),
1512
1512
Instruction (opname = 'MAKE_CELL' , opcode = 135 , arg = 1 , argval = 'd' , argrepr = 'd' , offset = 4 , starts_line = None , is_jump_target = False , positions = None ),
1513
1513
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 ),
1515
1515
Instruction (opname = 'LOAD_CLOSURE' , opcode = 136 , arg = 3 , argval = 'a' , argrepr = 'a' , offset = 10 , starts_line = None , is_jump_target = False , positions = None ),
1516
1516
Instruction (opname = 'LOAD_CLOSURE' , opcode = 136 , arg = 4 , argval = 'b' , argrepr = 'b' , offset = 12 , starts_line = None , is_jump_target = False , positions = None ),
1517
1517
Instruction (opname = 'LOAD_CLOSURE' , opcode = 136 , arg = 0 , argval = 'c' , argrepr = 'c' , offset = 14 , starts_line = None , is_jump_target = False , positions = None ),
1518
1518
Instruction (opname = 'LOAD_CLOSURE' , opcode = 136 , arg = 1 , argval = 'd' , argrepr = 'd' , offset = 16 , starts_line = None , is_jump_target = False , positions = None ),
1519
1519
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 ),
1521
1521
Instruction (opname = 'MAKE_FUNCTION' , opcode = 132 , arg = 9 , argval = 9 , argrepr = 'defaults, closure' , offset = 22 , starts_line = None , is_jump_target = False , positions = None ),
1522
1522
Instruction (opname = 'STORE_FAST' , opcode = 125 , arg = 2 , argval = 'inner' , argrepr = 'inner' , offset = 24 , starts_line = None , is_jump_target = False , positions = None ),
1523
1523
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