f4c9b33abf
This makes the runtime and object APIs more consistent. mp_store_subscr functionality now moved into objects (ie list and dict store_item).
19 lines
231 B
Python
19 lines
231 B
Python
# del global
|
|
|
|
x = 1
|
|
print(x)
|
|
del x
|
|
try:
|
|
print(x)
|
|
except NameError:
|
|
print("NameError")
|
|
try:
|
|
del x
|
|
except: # NameError:
|
|
# FIXME uPy returns KeyError for this
|
|
print("NameError")
|
|
|
|
class C:
|
|
def f():
|
|
pass
|