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.
bumsfeld
Nearly a Posting Virtuoso
1,445 posts since Jul 2005
Reputation Points: 404
Solved Threads: 184