How to use Python’s @classmethod and @staticmethod

Jack Dong
4 min readDec 13, 2020

Python is a unique language in that it is fairly easy to learn, given its straight-forward syntax, yet still extremely powerful. There are a lot more features under the hood than you might realize.

While I could be referring to quite a few different things with this statement, in this case I’m talking about the decorators @classmethod and @staticmethod. For many of your…

--

--