newbie-question: difference between classmethod and staticmethod in Python2.2

T. Kaufmann merman at
Wed Sep 4 10:33:18 EDT 2002

Hi there,

can anybody explain the difference between 'staticmethod' and 'classmethod' in a simple way in 

When should I use staticmethod or classmethod in classes?

I thought a staticmethod is a classmethod like in C++/ Java?

Thanks for help.



More information about the Python-list mailing list