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
Thanks! I just need to remember to del the variables after "for in".
--
http://mail.python.org/mailman/listinfo/python-list
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
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