[Python-Dev] Re: Python-Dev Digest, Vol 8, Issue 20

Scott David Daniels Scott.Daniels at Acm.Org
Wed Mar 10 12:27:09 EST 2004

Aahz <aahz at pythoncraft.com> wrote:
> BTW, have we agreed on the order in which decorators will be applied?
I think this depends on the position of the expression list.

     def foo(a,b,c) [d,e,f]: pass

should be foo = f(e(d(<function body>)))
-- I read it <make body> apply d, apply e, apply f

     def foo [d,e,f](a,b,c): pass

should be foo = d(e(f(<function body>)))

The other orders seem harder to explain.

-Scott David Daniels
Scott.Daniels at Acm.Org

More information about the Python-Dev mailing list