[Python-Dev] order of decorator application? (original) (raw)
Skip Montanaro skip at pobox.com
Tue Mar 23 11:24:23 EST 2004
- Previous message: [Python-Dev] Chaining seq1.pop().extend(seq2) does give wrong result
- Next message: [Python-Dev] order of decorator application?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
(I'm working on PEP 318...)
Is there a concensus on the order of application for decorators? Should
def func(a,b) [d1,d2]:
pass
be equivalent to
def func(a,b):
pass
func = d1(d2(func))
or
def func(a,b):
pass
func = d2(d1(func))
or is it a coin toss? I'm having trouble finding coherent discussion on this topic in the archives. Pointers appreciated.
Thx,
Skip
- Previous message: [Python-Dev] Chaining seq1.pop().extend(seq2) does give wrong result
- Next message: [Python-Dev] order of decorator application?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]