You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
231 B
18 lines
231 B
# 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
|
|
|