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.
19 lines
231 B
19 lines
231 B
11 years ago
|
# 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
|