Say I have a class:
class myM():
def __init__(self):
print("original")
I then instantiate this class
a=myM()
From which I can call
a.__init__()
However, if I use the class itself to call __init__
,
myM.__init__()
results in an error.
These 2 options work however:
myM.__init__(myM)
and myM.__init__(a)
where a=myM()
.
Question:
Why do I have to pass myM
or a
as an argument to __init__
, for myM.__init__
to work?
Why dont I need to do that if I call a.__init__()
instead?