tiddlyweb/tiddlyweb — comment on commit fc3c991d063294d9ba53d50c115dbc80c5cc69f2
File: tiddlyweb/manage.py line 15
By FND:

> It's the nature of decorators that they are closures: They must return what
> are essentially lambdas.

That's only true for parameterized decorators, which this is not (anymore).

$ cat foo.py
def deco(func):
print "DECORATING", func
return func

@deco
def foo():
print "FOO"

$ python foo.py
DECORATING

cf. http://www.siafoo.net/article/68