Skip to content

Instantly share code, notes, and snippets.

@yaki29
Created October 20, 2016 19:54
Show Gist options
  • Save yaki29/204536ac537be5d0558e86daa41cdd91 to your computer and use it in GitHub Desktop.
Save yaki29/204536ac537be5d0558e86daa41cdd91 to your computer and use it in GitHub Desktop.
class Base(object):
def __init__(self):
print "Base created"
class ChildA(Base):
def __init__(self):
Base.__init__(self)
class ChildB(Base):
def __init__(self):
super(ChildB, self).__init__()
ChildA()
ChildB()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment