classmethod vs. staticmethod
"""from stackoverflowhttp://stackoverflow.com/questions/136097/what-is-the-difference-between-staticmethod-and-classmethod-in-python To decide whether to use @staticmethod or @classmethod you have to look inside your method. If your method access other var/method in your class then Use @classmethod. On the other hand if your method does not touched any other parts of the class then use @staticme..
Python
2016. 5. 7. 10:45