Re: Confusion with calling function of a subclass

2006-12-22 Thread Pyenos
Adonis Vargas <[EMAIL PROTECTED]> writes: > Pyenos wrote: > > class TREE: > > def gettree(self):print self > > TREE.gettree() # I get an error saying# TypeError: > > unbound method gettree() must be called > ># with TREE instance as first argument (got nothing i

Re: Confusion with calling function of a subclass

2006-12-22 Thread Fredrik Lundh
Pyenos wrote: > class TREE: > def gettree(self):print self > TREE.gettree() # I get an error saying ># TypeError: unbound method gettree() must be called ># with TREE instance as first argument (got nothing instead > > I still don't understand how to solve thi

Re: Confusion with calling function of a subclass

2006-12-21 Thread Adonis Vargas
Pyenos wrote: > class TREE: > def gettree(self):print self > TREE.gettree() # I get an error saying ># TypeError: unbound method gettree() must be called ># with TREE instance as first argument (got nothing instead > > > I still don't understand how to solve t