micropython: add micropython component
This commit is contained in:
10
components/language/micropython/tests/basics/try_as_var.py
Normal file
10
components/language/micropython/tests/basics/try_as_var.py
Normal file
@@ -0,0 +1,10 @@
|
||||
try:
|
||||
raise ValueError(534)
|
||||
except ValueError as e:
|
||||
print(type(e), e.args)
|
||||
|
||||
# Var bound in except block is automatically deleted
|
||||
try:
|
||||
e
|
||||
except NameError:
|
||||
print("NameError")
|
Reference in New Issue
Block a user