Peter Otten wrote: > @decorator > def f(): > # ... > > is the same as > > def f(): > # ... > f = decorator(f()) ^^ Nope, f is not called here. (Think of staticmethod).
Georg -- http://mail.python.org/mailman/listinfo/python-list
Peter Otten wrote: > @decorator > def f(): > # ... > > is the same as > > def f(): > # ... > f = decorator(f()) ^^ Nope, f is not called here. (Think of staticmethod).
Georg -- http://mail.python.org/mailman/listinfo/python-list