@decorator syntax is sugar, but for what exactly?

Avner Ben avner at skilldesign.com
Mon Aug 9 19:14:08 CEST 2004


xtian wrote:
>[snip]
> 
> def property_(f):
>     return property(*f())

Where has the property Without Underscore come from?

>[snip]
>     
> t = DecorationTest()
> print t.foo
> t.foo = 3
> print t.foo
> 

Will you please explain how the assignment and retrieval work?

	Avner.



More information about the Python-list mailing list