"Alex Hall" <mehgcap at gmail.com> wrote > class parent(object): > def __init__(self, l=None): > if l is None: l=[] l is a local variable inside init(). You wanted self.l... HTH, -- Alan Gauld Author of the Learn to Program web site http://www.alan-g.me.uk/