Re: virtual function appears in two bases

2006-10-27 Thread Fredrik Lundh
joe Li wrote: > I saw the following code, but I don't understand the rule for virtual > function that appears in two bases > Could anyone explain it for me, thanks. http://docs.python.org/tut/node11.html#SECTION001151 -- http://mail.python.org/mailman/listinfo/python-list

virtual function appears in two bases

2006-10-27 Thread joe Li
I saw the following code, but I don't understand the rule for virtual function that appears in two basesCould anyone explain it for me, thanks.class Base1:    def amethod(self):    print "Base1" class Base2(Base1): passclass Base3:    def amethod(self):    print "Base3"class Derived(Base2,