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,
Thanks a lot.Please forgive my careless mistake, I am completely a new user^-^2006/10/26, Fredrik Lundh <[EMAIL PROTECTED]>:
joe Li wrote:> **class Bunch(object):> def __init__(self, **fields):
> self.__dict__ = fields>> p = Bunch(x=2.3, y=4.5)> print p>
class Bunch(object): def __init__(self, **fields): self.__dict__ = fields p = Bunch(x=2.3, y=4.5)print p
print p.__dict__I dont' understand the usage of the double * here, could anyone explain it for me? thanks.
--
http://mail.python.org/mailman/listinfo/pyth