What is class method?

Bruno Desthuilliers bruno.42.desthuilliers at websiteburo.invalid
Tue Aug 26 11:00:14 CEST 2008

Maric Michaud a écrit :
> It is a common advice that staticmethod should not exist in python, as they do 
> nothing compared to module level functions,

They "do" nothing more, but are accessible thru a class object instead 
of being accessible thru a module object. It sometimes happens to be 
useful (for a very very low value of 'sometimes' as far as I'm 
concerned, but still...)

More information about the Python-list mailing list