I am reading the decorator section within Expert Python Programming and I am very confused in the first example, of a method that was done before decorators. It reads:
class WhatFor(object): def it(cls): print 'work with %s' % cls it = classmethod(it) def uncommon(): print 'I could be a global function' uncommon = staticmethod(uncommon) But I can't seem to understand the above. Under what circumstance would staticmethod be useful? I am just deriving that you are not passing self.
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor