#Python 2
Python 2
class K(object):
def __del__(self):
print "You cannot stop the power of deallocators!"
K()
This code goes into an infinite loop printing You cannot stop the power of deallocators
.
Note that this does not work in Python 3