News for hackers. Stuff that matters.
Re:Python 3.7 released by lysp on Wednesday June 27, 2018 @10:28PM (#17413613)
Not a python coder, but from my understanding they are essentially auto-constructors?
Re:Python 3.7 released by extralego on Wednesday June 27, 2018 @11:04PM (#17413754)
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.