f909034400
For this, needed to implement DELETE_NAME bytecode (because var bound in except clause is automatically deleted at its end). http://docs.python.org/3/reference/compound_stmts.html#except : "When an exception has been assigned using as target, it is cleared at the end of the except clause."
11 lines
180 B
Python
11 lines
180 B
Python
try:
|
|
raise ValueError(534)
|
|
except ValueError as e:
|
|
print(repr(e))
|
|
|
|
# Var bound in except block is automatically deleted
|
|
try:
|
|
e
|
|
except NameError:
|
|
print("NameError")
|