"Tiger12506" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>>    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)

Ah, you already caught it, my gmane feed ruinning a bit slow...

Alan G 


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to