[Q] __init__ in class

황병희 soyeomul at doraji.xyz
Thu Dec 26 21:59:33 EST 2019


Irv Kalb <Irv at furrypants.com> writes:

> myObject = MyClass()   #  "MyClass" would be the name of a class in your code
>
> When you run a line like the one above, Python looks to see if that
> class has a method named __init__().  If it does, then Python calls
> that method of the newly created object.

Very clean comments, thank you Irv^^^ INDEED.

Sincerely,

-- 
^고맙습니다 _地平天成_ 감사합니다_^))//


More information about the Python-list mailing list