You are here : python_3Built-in Functionsstaticmethod

staticmethod() - Built-in Functions

Return a static method for function.


Syntax

staticmethod(function)


Example

class C:
    @staticmethod
    def f(arg1, arg2, ...): ...


Output / Return Value


Limitations


Alternatives / See Also


Reference