class Team :
def __init__(self):
print "object instantiated"
To create an object of Team class,
>>> obj = Team()
object instantiated
From obj I can access member of Team class. But why is the following allowed?
>>> y = obj.__init__()
object instantiated
here some question it raises.
Why
objis able to call__init__(), is__init__()just like another method?Whenever
__init__()is called it will create an object (correct if i'm wrong here), so shouldyhold another instance ofTeam?