I am learning about classmethod. I have looked at this example
class A(object):
def foo(self,x):
print (self,x)
@classmethod
def class_foo(cls,x):
print(cls,x)
@staticmethod
def static_foo(x):
print (x)
a=A()
a.foo('pic')
a.class_foo('pic')
This is output
<__main__.A object at 0x7f413121c080> pic
<class '__main__.A'> pic
What is the practical meaning of this?Implementation?