You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 16:59:52 +08:00
28 lines
493 B
Python
28 lines
493 B
Python
# Tests:
|
|
# trystmt ::= SETUP_EXCEPT suite_stmts_opt POP_BLOCK
|
|
# try_middle COME_FROM
|
|
# except_stmt ::= except
|
|
|
|
try:
|
|
x = 1
|
|
except RuntimeError as e:
|
|
y = 2
|
|
|
|
# # Tests:
|
|
# # trystmt ::= SETUP_EXCEPT suite_stmts_opt POP_BLOCK
|
|
# # try_middle COME_FROM
|
|
# # except_stmt ::= except_cond1 except_suite
|
|
# # except_suite ::= ...
|
|
|
|
# try:
|
|
# x = 1
|
|
# except ImportError:
|
|
# pass
|
|
|
|
# try:
|
|
# x = 2
|
|
# except ImportError:
|
|
# x = 3
|
|
# finally:
|
|
# x = 4
|