circuitpython/tests/basics/try_finally_continue.py
2021-05-03 14:01:18 -07:00

18 lines
389 B
Python

def foo(x):
for i in range(x):
try:
pass
finally:
try:
try:
print(x, i)
finally:
try:
1 / 0
finally:
return 42
finally:
print('continue')
continue
print(foo(4))