mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 20:20:14 +01:00
py: Implement break/continue from an exception with finally.
Still todo: break/continue from within the finally block itself.
This commit is contained in:
12
py/showbc.c
12
py/showbc.c
@@ -220,14 +220,10 @@ void mp_byte_code_print(const byte *ip, int len) {
|
||||
printf("SETUP_LOOP " UINT_FMT, ip + unum - ip_start);
|
||||
break;
|
||||
|
||||
case MP_BC_BREAK_LOOP:
|
||||
DECODE_ULABEL; // loop labels are always forward
|
||||
printf("BREAK_LOOP " UINT_FMT, ip + unum - ip_start);
|
||||
break;
|
||||
|
||||
case MP_BC_CONTINUE_LOOP:
|
||||
DECODE_ULABEL; // loop labels are always forward
|
||||
printf("CONTINUE_LOOP " UINT_FMT, ip + unum - ip_start);
|
||||
case MP_BC_UNWIND_JUMP:
|
||||
DECODE_SLABEL;
|
||||
printf("UNWIND_JUMP " UINT_FMT " %d", ip + unum - ip_start, *ip);
|
||||
ip += 1;
|
||||
break;
|
||||
|
||||
case MP_BC_SETUP_EXCEPT:
|
||||
|
||||
Reference in New Issue
Block a user