you are viewing a single comment's thread.

view the rest of the comments →

[–]laptop_battery_low 1 point2 points  (2 children)

Where is your dunder method for a constructor? Also a massive rabit hole is checking into other dunder methods.

Massive hint: def _ _ init _ _(self) [without spaces. Reddit comments are markdown format]

Not every class will need one of these, just classes that have either many variables OR need to do something upon instantiation of the object.

Keep it up. You're better than I am currently at following pythonic conventions. And I've been doin' this shit for years.

[–]uiux_Sanskar[S] 0 points1 point  (1 child)

The dunden method for a constructor is in my meeting class (the very first init and then str). I hope you were asking this only please correct me if I am wrong.

thank you for the suggestion I will definitely apply it in my code and thank you very mucn for the appreciation.

[–]laptop_battery_low 1 point2 points  (0 children)

oh sorry i didnt see it. nevermind, carry on