[Python-Dev] Re: Python-Dev Digest, Vol 8, Issue 20 (original) (raw)

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())) -- I read it apply d, apply e, apply f

while def foo d,e,f: pass

should be foo = d(e(f()))

The other orders seem harder to explain.

-- -Scott David Daniels Scott.Daniels at Acm.Org



More information about the Python-Dev mailing list