[Python-Dev] Re: order of decorator application? (original) (raw)
Terry Reedy tjreedy at udel.edu
Thu Mar 25 10:32:22 EST 2004
- Previous message: [Python-Dev] order of decorator application?
- Next message: [Python-Dev] PEP 318 - posting draft
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
<ncoghlan at iinet.net.au> wrote in message news:1080137557.406197554c823 at mail.iinet.net.au...
Another phrasing which makes L2R the 'obvious' evaluation order - don't nest the functions when spelling out the long form (i.e. unrolling Phillip's loop): def func(a,b): pass func = d1(func) func = d2(func)
I also regard [deco1, deco2, deco3] as defining a unix-style pipeline:
deco1 <f | deco2 | deco3 >f
Terry J. Reedy
- Previous message: [Python-Dev] order of decorator application?
- Next message: [Python-Dev] PEP 318 - posting draft
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]