Can anyone explain to me why this doesn't work?

class Foo(object):
    @property
    @classmethod
    def f(cls):
        return 4

I mean, I think it seems to be syntactically clear what I'm trying to accomplish. What am I missing?

--rich
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to