Is this a bug with __del__()

Costas Menico costas at meezon.com
Thu May 24 13:13:48 EDT 2001


Why does the __del__ get called for a class when all I am doing is
creating an object? It seems to be a problem..

E.g

class ClassFoo:
	def __del__(self):
		print "Delete called"

x=ClassFoo()
print "Program End"



Costas



More information about the Python-list mailing list