Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Python 2.7.15
- class A(object):
- def __init__(self):
- print "class A __init__ called."
- class B(A):
- def __init__(self):
- super(B, self).__init__()
- def ShouldHaveBeenInClassA():
- pass
- class C(B):
- def __init__(self):
- super(C, self).__init__()
- def ShouldAlsoHaveBeenInClassA():
- pass
- # Ad infinitum ...
- obj = C()
Add Comment
Please, Sign In to add comment