What is class method?

Hussein B hubaghdadi at gmail.com
Sun Aug 24 10:32:34 CEST 2008

I'm familiar with static method concept, but what is the class method?
how it does differ from static method? when to use it?
class M:
 def method(cls, x):

 method = classmethod(method)
Thank you for your time.

More information about the Python-list mailing list