Re: del class with recursive list

2008-03-09 Thread Gabriel Genellina
On 9 mar, 17:20, [EMAIL PROTECTED] wrote: > Thanks! I just need to remember to del the variables after "for in". And when working on the interactive interpreter, it's easy to forget the _ variable too (that holds the last printed expression) -- Gabriel Genellina -- http://mail.python.org/mailma

Re: del class with recursive list

2008-03-09 Thread duvo
Thanks! I just need to remember to del the variables after "for in". -- http://mail.python.org/mailman/listinfo/python-list

Re: del class with recursive list

2008-03-08 Thread Peter Otten
duccio wrote: > Will someone have time to tell me why this code don't work as I expect? > And what should I do to make the "del n" delete all the lower nodes? > Thanks! > > class Node: > def __init__(self): > self.childs=[] > def appendNode(self, n): > self.childs.appe

del class with recursive list

2008-03-08 Thread duccio
Hello! Will someone have time to tell me why this code don't work as I expect? And what should I do to make the "del n" delete all the lower nodes? Thanks! class Node: def __init__(self): self.childs=[] def appendNode(self, n): self.childs.append(n) def __del__(s