What is a static method?
Class methods, static methods, and metaclasses
Audio flashcard · 0:14Nortren·
What is a static method?
0:14
A static method is a method that receives neither the instance nor the class as an implicit first argument. It is declared with the staticmethod decorator. It behaves like a regular function but is namespaced inside the class. Use it for utility functions logically related to the class.
docs.python.org