Static methods in Python?
Yep, using the staticmethod decorator Note that some code might use the old method of defining a static method, using staticmethod as a function rather than a decorator. This should only be used if you have to support ancient versions of Python (2.2 and 2.3) This is entirely identical to the first example (using @staticmethod), just not using the nice … Read more