@staticmethod vs @classmethod in Python
Mahdi Yusuf
5 Lessons
14m
intermediate
python
In this course weβll discuss the difference between the @staticmethod and @classmethod decorators as well as their uses in Python. We cover a few examples on when to best use each, and how to deal with each when using subclasses.
Note: This course uses Python 2.7 in its coding examples.
@staticmethod vs @classmethod in Python
5 Lessons 14m
About Mahdi Yusuf
Mahdi is the CTO of Gyroscope, the co-founder of the PyCoderβs Weekly, and a longtime Pythoneer.
Β» More about Mahdi

