Re:Python-patterns – A collection of design patterns/idioms ...
by CraigJPerry on Tuesday May 31, 2022 @12:25PM
(#31571474)
Yeah, I was pretty sure that was the case but just to be certain:
[ Parent
| on HN ]
Re:Python-patterns – A collection of design patterns/idioms ...
by TekMol on Tuesday May 31, 2022 @02:05PM
(#31572772)
Wow!
So with this we can skip the class definition, having "self" as the first parameter of every function and prefixing all class variables with "self".
That leads to so much cleaner code!