@staticmethod vs module-level function
- by darkfeline
This is not about @staticmethod and @classmethod! I know how staticmethod works. What I want to know is the proper use cases for @staticmethod vs. a module-level function.
I've googled this question, and it seems there's some general agreement that module-level functions are preferred over static methods because it's more pythonic. Static…