Why is the object not getting deleted and reinstantiated when I call the del function in the below code?
class A:
def __init__(self, a={}):
if not ('1' in a):
a['1']=1
else:
a['1']+=1
print (a['1'])
def __del__(self):
del self.a
for i in range (5):
a=A()
output:
1,2,3,4,5
expected output:
1,1,1,1,1