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

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


Hi there,

can anybody explain the difference between 'staticmethod' and 'classmethod' in a simple way in 
Python2.2?

When should I use staticmethod or classmethod in classes?

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

Thanks for help.

o-o

Thomas




More information about the Python-list mailing list