> def recursive_print(self, level=0): > print "\t"*level + self.cargo > for x in self.children: > recursive_print(x,level+1)
Whoops. should be for x in self.children: x.recursive_print(level+1) _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor