You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
14 lines
423 B
Python
14 lines
423 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 except_handler COME_FROM
|
|
# except_handler ::= 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
|