Property error

Georg Brandl g.brandl-nospam at gmx.net
Fri Dec 15 07:47:45 EST 2006


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



More information about the Python-list mailing list