File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed
Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -827,14 +827,36 @@ def foo(x):
827827
828828%4d RESUME 0
829829
830- %4d LOAD_GLOBAL 1 (list + NULL)
830+ %4d LOAD_GLOBAL 0 (list)
831+ COPY 1
832+ LOAD_COMMON_CONSTANT 5 (list)
833+ IS_OP 0 (is)
834+ POP_JUMP_IF_FALSE 22 (to L3)
835+ NOT_TAKEN
836+ POP_TOP
837+ BUILD_LIST 0
831838 LOAD_FAST_BORROW 0 (x)
832839 BUILD_TUPLE 1
833840 LOAD_CONST %d (<code object <genexpr> at 0x..., file "%s", line %d>)
834841 MAKE_FUNCTION
835842 SET_FUNCTION_ATTRIBUTE 8 (closure)
836843 LOAD_DEREF 1 (y)
837844 CALL 0
845+ PUSH_NULL
846+ L1: FOR_ITER 3 (to L2)
847+ LIST_APPEND 3
848+ JUMP_BACKWARD 5 (to L1)
849+ L2: END_FOR
850+ POP_ITER
851+ RETURN_VALUE
852+ L3: PUSH_NULL
853+ LOAD_FAST_BORROW 0 (x)
854+ BUILD_TUPLE 1
855+ LOAD_CONST 1 (<code object <genexpr> at 0x..., file "%s", line %d>)
856+ MAKE_FUNCTION
857+ SET_FUNCTION_ATTRIBUTE 8 (closure)
858+ LOAD_DEREF 1 (y)
859+ CALL 0
838860 CALL 1
839861 RETURN_VALUE
840862""" % (dis_nested_0 ,
@@ -845,6 +867,8 @@ def foo(x):
845867 1 if __debug__ else 0 ,
846868 __file__ ,
847869 _h .__code__ .co_firstlineno + 3 ,
870+ __file__ ,
871+ _h .__code__ .co_firstlineno + 3 ,
848872)
849873
850874dis_nested_2 = """%s
You can’t perform that action at this time.
0 commit comments