Author gregory_p
Recipients
Date 2006-02-01.20:41:03
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
http://python.org/doc/faq/programming.html

1.6.8   How do I create static class data and static
class methods?
...
Static methods are possible when you're using new-style
classes:

class C:
    def static(arg1, arg2, arg3):
        # No 'self' parameter!
        ...
    static = staticmethod(static)

- Shouldn't it look like class C(object)?
- it would be nice to mention decorators here
History
Date User Action Args
2007-08-23 14:37:36adminlinkissue1421839 messages
2007-08-23 14:37:36admincreate