"Tiger12506" <[EMAIL PROTECTED]> wrote > class Task(object): > ... > def recursive_print(self, level=0): > print "\t"*level + self.cargo > for x in self.children: > recursive_print(x,level+1)
x.recursive_print(level+1) Is what you meant I think :-) Alan G. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor