When, apart from using self, must a function be static?

147 Views Asked by At

Very broad question, perhaps python specific.

Many IDE tools such as PyCharm suggest to add the @staticmethod decorator to functions which do not contain any reference to self. Are there ever occasions where a function must not be static even though it has no reference to self?

0

There are 0 best solutions below