On 4 January 2011 00:47, Alex Hall <mehg...@gmail.com> wrote: > class parent(object): > def __init__(self, l=None): > if l is None: l=[] >
Missing "self". Perhaps you meant: class parent(object): def __init__(self, l=None): if l is None: self.l=[] else: self.l=l Walter
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor