re: How To Write Better Python Code? VIEW POST


You said no classes, but what would you recommend for repeating arguments? Currently I am using dataclasses for that.


I never said 'no classes'. Obviously, they have their place like in your case. I said prefer functions over classes and group similar functions into modules rather than merely use a class for behavior grouping :)

code of conduct - report abuse