DEV Community

Discussion on: Python: __init__() is not the only constructor

Collapse
 
delta456 profile image
Swastik Baranwal

It's like self reference that points to current instance of the class. I used cls because it needs to be like that.

Collapse
 
robinscodeongit profile image
robin

No, I explicitly meant the cls*e*

Thread Thread
 
delta456 profile image
Swastik Baranwal

That seems to be a typo. I have updated the post so please check again.

Thread Thread
 
robinscodeongit profile image
robin

Okay, thanks a lot
Really nice and easy to understand article then :)