codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
class A(object): def __init__(self): print "init func in A" super(A, self).__init__() class B(object): def __init__(self, arg1): print "init func in B" super(B, self).__init__() class C(B, A): def __init__(self, arg1, arg2): print "init func in C" super(C, self).__init__(arg1) #print C.__mro__ class D(object): def __init__(self): print "init func in D" super(D, self).__init__() class E(C, D): def __init__(self): print "init func in E" super(E, self).__init__("test1", "args") print E.mro() e = E()
Private
[
?
]
Run code
Submit