Re: @property; @classmethod; def f()

2011-01-01 Thread Steven D'Aprano
On Sat, 01 Jan 2011 17:55:10 -0800, K. Richard Pixley wrote: > Can anyone explain to me why this doesn't work? > > class Foo(object): > @property > @classmethod > def f(cls): > return 4 What does "doesn't work" mean

Re: @property; @classmethod; def f()

2011-01-01 Thread Ian Kelly
On 1/1/2011 6:55 PM, K. Richard Pixley wrote: 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? First, because classmeth

@property; @classmethod; def f()

2011-01-01 Thread K. Richard Pixley
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/listi