Bala,
python has no destructors. Python does garbage collection.
Whenever an object isn't referenced anymore the object is automatically
destroyed.
if you have something like
ref=MyObject(....)
whenever you delete the contents of "ref" the MyObject instance will be
destroyed automatically. So a
del ref
or a
ref=None
will destroy the MyObject instance.
hope that helps
UC
···
On Sunday 18 July 2004 09:41 pm, Bala wrote:
Hi,
Kindly send the syntax for destructor in python.
ThanksRegards
Bala
- --
Open Source Solutions 4U, LLC 2570 Fleetwood Drive
Phone: +1 650 872 2425 San Bruno, CA 94066
Cell: +1 650 302 2405 United States
Fax: +1 650 872 2417