If you insist writing your own destructor for class Tree, change it to this:
class Tree:
def __init__(self):
self.Root = None
def __del__(self):
if self.Root != None:
del self.Root
def LNR(self):
...
...
Note: Destructors are optional thing in Python.
Last edited by bumsfeld; Jul 18th, 2006 at 7:06 am.
Reputation Points: 404
Solved Threads: 180
Nearly a Posting Virtuoso
Offline 1,422 posts
since Jul 2005