You are here : python_3Built-in Functionsclassmethod

classmethod() - Built-in Functions

Return a class method for function.


Syntax

classmethod(function)


Example

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


Output / Return Value


Limitations


Alternatives / See Also


Reference