Type 1 :
class Demo(object):
"""docstring for Demo"""
def __init__(self, arg):
super(Demo, self).__init__()
self.arg = arg
or Type 2 :
class Demo(object):
def __init__(self, arg):
self.arg = arg
I have used Type 2 and i have no doubts in it.
what does super(Demo, self).__init__()
mean in Type 1 ? and What does it do ?