What is the difference between @staticmethod and @classmethod in Python?

Posted by Daryl Spitzer on Stack Overflow See other posts from Stack Overflow or by Daryl Spitzer
Published on 2008-09-25T21:01:57Z Indexed on 2010/06/17 22:03 UTC
Read the original article Hit count: 142

Filed under:
|

What is the difference between a function decorated with @staticmethod and one decorated with @classmethod?

© Stack Overflow or respective owner

Related posts about python

Related posts about decorator