Files
python-uncompyle6/test/simple_source/exception/20_try_except.py
2017-12-02 22:20:45 -05:00

14 lines
415 B
Python

# Tests:
# forstmt ::= SETUP_LOOP expr _for store for_block POP_BLOCK COME_FROM
# for_block ::= l_stmts_opt JUMP_BACK
# try_except ::= SETUP_EXCEPT suite_stmts_opt POP_BLOCK try_middle COME_FROM
# try_middle ::= jmp_abs COME_FROM except_stmts END_FINALLY
# Had a bug with the end of the except matching the end of the
# for loop.
for i in (1,2):
try:
x = 1
except ValueError:
y = 2