@@ -685,7 +685,7 @@ def foo(x):
685685
686686%3d RESUME 0
687687
688- %3d LOAD_CLOSURE 0 (y)
688+ %3d LOAD_FAST 0 (y)
689689 BUILD_TUPLE 1
690690 LOAD_CONST 1 (<code object foo at 0x..., file "%s", line %d>)
691691 MAKE_FUNCTION
@@ -709,7 +709,7 @@ def foo(x):
709709%3d RESUME 0
710710
711711%3d LOAD_GLOBAL 1 (NULL + list)
712- LOAD_CLOSURE 0 (x)
712+ LOAD_FAST 0 (x)
713713 BUILD_TUPLE 1
714714 LOAD_CONST 1 (<code object <genexpr> at 0x..., file "%s", line %d>)
715715 MAKE_FUNCTION
@@ -1596,8 +1596,8 @@ def _prepare_test_cases():
15961596 Instruction (opname = 'MAKE_CELL' , opcode = 135 , arg = 1 , argval = 'b' , argrepr = 'b' , offset = 2 , start_offset = 2 , starts_line = None , is_jump_target = False , positions = None ),
15971597 Instruction (opname = 'RESUME' , opcode = 151 , arg = 0 , argval = 0 , argrepr = '' , offset = 4 , start_offset = 4 , starts_line = 1 , is_jump_target = False , positions = None ),
15981598 Instruction (opname = 'LOAD_CONST' , opcode = 100 , arg = 5 , argval = (3 , 4 ), argrepr = '(3, 4)' , offset = 6 , start_offset = 6 , starts_line = 2 , is_jump_target = False , positions = None ),
1599- Instruction (opname = 'LOAD_CLOSURE ' , opcode = 136 , arg = 0 , argval = 'a' , argrepr = 'a' , offset = 8 , start_offset = 8 , starts_line = None , is_jump_target = False , positions = None ),
1600- Instruction (opname = 'LOAD_CLOSURE ' , opcode = 136 , arg = 1 , argval = 'b' , argrepr = 'b' , offset = 10 , start_offset = 10 , starts_line = None , is_jump_target = False , positions = None ),
1599+ Instruction (opname = 'LOAD_FAST ' , opcode = 124 , arg = 0 , argval = 'a' , argrepr = 'a' , offset = 8 , start_offset = 8 , starts_line = None , is_jump_target = False , positions = None ),
1600+ Instruction (opname = 'LOAD_FAST ' , opcode = 124 , arg = 1 , argval = 'b' , argrepr = 'b' , offset = 10 , start_offset = 10 , starts_line = None , is_jump_target = False , positions = None ),
16011601 Instruction (opname = 'BUILD_TUPLE' , opcode = 102 , arg = 2 , argval = 2 , argrepr = '' , offset = 12 , start_offset = 12 , starts_line = None , is_jump_target = False , positions = None ),
16021602 Instruction (opname = 'LOAD_CONST' , opcode = 100 , arg = 1 , argval = code_object_f , argrepr = repr (code_object_f ), offset = 14 , start_offset = 14 , starts_line = None , is_jump_target = False , positions = None ),
16031603 Instruction (opname = 'MAKE_FUNCTION' , opcode = 24 , arg = None , argval = None , argrepr = '' , offset = 16 , start_offset = 16 , starts_line = None , is_jump_target = False , positions = None ),
@@ -1624,10 +1624,10 @@ def _prepare_test_cases():
16241624 Instruction (opname = 'MAKE_CELL' , opcode = 135 , arg = 1 , argval = 'd' , argrepr = 'd' , offset = 4 , start_offset = 4 , starts_line = None , is_jump_target = False , positions = None ),
16251625 Instruction (opname = 'RESUME' , opcode = 151 , arg = 0 , argval = 0 , argrepr = '' , offset = 6 , start_offset = 6 , starts_line = 2 , is_jump_target = False , positions = None ),
16261626 Instruction (opname = 'LOAD_CONST' , opcode = 100 , arg = 2 , argval = (5 , 6 ), argrepr = '(5, 6)' , offset = 8 , start_offset = 8 , starts_line = 3 , is_jump_target = False , positions = None ),
1627- Instruction (opname = 'LOAD_CLOSURE ' , opcode = 136 , arg = 3 , argval = 'a' , argrepr = 'a' , offset = 10 , start_offset = 10 , starts_line = None , is_jump_target = False , positions = None ),
1628- Instruction (opname = 'LOAD_CLOSURE ' , opcode = 136 , arg = 4 , argval = 'b' , argrepr = 'b' , offset = 12 , start_offset = 12 , starts_line = None , is_jump_target = False , positions = None ),
1629- Instruction (opname = 'LOAD_CLOSURE ' , opcode = 136 , arg = 0 , argval = 'c' , argrepr = 'c' , offset = 14 , start_offset = 14 , starts_line = None , is_jump_target = False , positions = None ),
1630- Instruction (opname = 'LOAD_CLOSURE ' , opcode = 136 , arg = 1 , argval = 'd' , argrepr = 'd' , offset = 16 , start_offset = 16 , starts_line = None , is_jump_target = False , positions = None ),
1627+ Instruction (opname = 'LOAD_FAST ' , opcode = 124 , arg = 3 , argval = 'a' , argrepr = 'a' , offset = 10 , start_offset = 10 , starts_line = None , is_jump_target = False , positions = None ),
1628+ Instruction (opname = 'LOAD_FAST ' , opcode = 124 , arg = 4 , argval = 'b' , argrepr = 'b' , offset = 12 , start_offset = 12 , starts_line = None , is_jump_target = False , positions = None ),
1629+ Instruction (opname = 'LOAD_FAST ' , opcode = 124 , arg = 0 , argval = 'c' , argrepr = 'c' , offset = 14 , start_offset = 14 , starts_line = None , is_jump_target = False , positions = None ),
1630+ Instruction (opname = 'LOAD_FAST ' , opcode = 124 , arg = 1 , argval = 'd' , argrepr = 'd' , offset = 16 , start_offset = 16 , starts_line = None , is_jump_target = False , positions = None ),
16311631 Instruction (opname = 'BUILD_TUPLE' , opcode = 102 , arg = 4 , argval = 4 , argrepr = '' , offset = 18 , start_offset = 18 , starts_line = None , is_jump_target = False , positions = None ),
16321632 Instruction (opname = 'LOAD_CONST' , opcode = 100 , arg = 1 , argval = code_object_inner , argrepr = repr (code_object_inner ), offset = 20 , start_offset = 20 , starts_line = None , is_jump_target = False , positions = None ),
16331633 Instruction (opname = 'MAKE_FUNCTION' , opcode = 24 , arg = None , argval = None , argrepr = '' , offset = 22 , start_offset = 22 , starts_line = None , is_jump_target = False , positions = None ),
0 commit comments