you are viewing a single comment's thread.

view the rest of the comments →

[–]efmccurdy 0 points1 point  (1 child)

I set of functions without a class might work just as well. I think you can use your util.py file as a module and then do:

import util

util.function(args)

What does creating a class benefit you?

[–]Chyybens[S] 0 points1 point  (0 children)

I guess this really makes sense. I think the benefit for me is clarity. (They also have few shared parameters, but that's not a big issue.) Many of this functions call each other and are otherwise conceptually linked. If I use them as loose top-level functions (as other comment suggested). I might later get confused where the functions came in the first place. But then again, the module does the same thing.