Stupid q: Where is the destructor?

Kjell Kolsaker kjell.kolsaker at kkt.ntnu.no
Wed Aug 23 10:05:52 EDT 2000


Hi,

I am new to Python, so excuse me if I ask for an obvious thing,
Didn't find anything in the tutorial, nor in the faq.

I want to define a class with some side effect in the
constructor that I need to clean up whenever an object is deleted.
Default destruction doesn't help me. In the documentation,
I find __init__, but no "__finalize__" or whatever it should be called.

Do anybody know the answer? Have I missed something obvious?

Regards,
Kjell Kolsaker, NTNU, Trondheim





More information about the Python-list mailing list