Peter Otten wrote: > @decorator > def f(): > # ... > > is the same as > > def f(): > # ... > f = decorator(f()) > > What happens when your age() function is invoked? There is no explicit > return statement, so None is implicitly returned, and > > age = property(age()) > > is the same as age = property(None)
As Georg pointed out, this is all wrong. As age is not called the age function becomes the getter. Peter -- http://mail.python.org/mailman/listinfo/python-list