From 6ce427755112c28f8a7efab65d329205d833f623 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 12 Apr 2014 18:20:40 +0100 Subject: py: Make all LOAD_FAST ops check for unbound local. This is necessary to catch all cases where locals are referenced before assignment. We still keep the _0, _1, _2 versions of LOAD_FAST to help reduced the byte code size in RAM. Addresses issue #457. --- py/showbc.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'py/showbc.c') diff --git a/py/showbc.c b/py/showbc.c index c3342ca84..615d1fe0d 100644 --- a/py/showbc.c +++ b/py/showbc.c @@ -132,11 +132,6 @@ void mp_byte_code_print(const byte *ip, int len) { printf("LOAD_FAST_N " UINT_FMT, unum); break; - case MP_BC_LOAD_FAST_CHECKED: - DECODE_UINT; - printf("LOAD_FAST_CHECKED " UINT_FMT, unum); - break; - case MP_BC_LOAD_DEREF: DECODE_UINT; printf("LOAD_DEREF " UINT_FMT, unum); -- cgit v1.2.3