Static classes in Python

rynd picture rynd · Apr 30, 2012 · Viewed 31.7k times · Source

I once read (I think on a page from Microsoft) that it's a good way to use static classes, when you don't NEED two or more instances of a class.

I'm writing a program in Python. Is it a bad style, if I use @classmethod for every method of a class?

Answer

Gareth Latty picture Gareth Latty · Apr 30, 2012

Generally, usage like this is better done by just using functions in a module, without a class at all.