WIP redo try/except for Python3

This commit is contained in:
rocky
2015-12-25 17:45:13 -05:00
parent 39f0f7440b
commit 0409cee6a9
3 changed files with 43 additions and 41 deletions

View File

@@ -5,23 +5,23 @@
try:
x = 1
except:
pass
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 ::= ...
# # 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 = 1
# except ImportError:
# pass
try:
x = 2
except ImportError:
x = 3
finally:
x = 4
# try:
# x = 2
# except ImportError:
# x = 3
# finally:
# x = 4