Hi I have a class like the following:
class Point:
def __init( self, x=0, y=0):
self.x = x
self.y = y
def __del__(self):
pass #do nothing
I didn't specify any deleting operation in __del__ overriding and I didn't call any kind of super() to call "original" class method.
However, if I del an instance of Point it works anyway...how is it possible?
Edit for duplication issue: I think that this question is slightly different from:
since its point is to investigate on how it is possible that __del__ makes things not written in the overridden function, without calling another original __del__ implementation but only overriding the original function with just a simple pass. I think it looks quite strange in Python logic.