From 8c1d23a0e20da2903f363448e8042e5d08caabe7 Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 24 Apr 2015 01:52:28 +0100 Subject: py: Modify bytecode "with" behaviour so it doesn't use any heap. Before this patch a "with" block needed to create a bound method object on the heap for the __exit__ call. Now it doesn't because we use load_method instead of load_attr, and save the method+self on the stack. --- tests/cmdline/cmd_showbc.py.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/cmdline') diff --git a/tests/cmdline/cmd_showbc.py.exp b/tests/cmdline/cmd_showbc.py.exp index a7088894e..48bf628af 100644 --- a/tests/cmdline/cmd_showbc.py.exp +++ b/tests/cmdline/cmd_showbc.py.exp @@ -29,7 +29,7 @@ Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+): ######## \.\+5b arg names: -(N_STATE 25) +(N_STATE 22) (N_EXC_STACK 2) (INIT_CELL 14) (INIT_CELL 15) -- cgit v1.2.3