Calling A Deconstructor
John Abel
john.abel at pa.press.net
Fri Nov 15 08:47:20 EST 2002
Hi,
I have a class, with an __init__, and a main function, basically a
wrapper around smtplib. I wish to add a __del__ to the class. Two
questions: Do I need to do it this way? If so, how do I can close the
instance, so the __del__ is called? The script will be permanently
resident, so I wanted to make sure that I didn't have various
connections open to the smtp server.
Thanks
John
More information about the Python-list
mailing list