Hacker News new | ask | show | jobs
by lysp 2918 days ago
Not a python coder, but from my understanding they are essentially auto-constructors?
1 comments

Technically, no, but that is how they are written. __init__ was always called after the instance was already created. I think it was originally useful for managing inheritance and baseclass initialization, which can be handled other less hard-coded ways now. I could be wrong.