8 lines
119 B
Python
8 lines
119 B
Python
|
d = {}
|
||
|
try:
|
||
|
del d['nokey']
|
||
|
except KeyError:
|
||
|
pass
|
||
|
else:
|
||
|
print 'Deleting missing key should raise KeyError!'
|