Multiple Class Inheritance Question

YoTuco not.valid at address.org
Sun Jul 13 21:28:15 CEST 2003


Does (can) an inheritance scheme like this have any adverse effects
(pitt-falls) for the App class inheriting class 'A' twice? 

Thanx in advance for your input.

class A:
    A_attr = 'A'
    ...
    def A_methods(self):
    ...

class B(A):
    def __init__(self):
    ...

class C(A):
    def __init__(self):
    ...

class App(B,C):
    def __init__(self):
        B.__init__(self)
        C.__init__(self)
    ...





More information about the Python-list mailing list