Author gvanrossum
Recipients Guido.van.Rossum, dirn, eric.araujo, eric.smith, gvanrossum, james, ncoghlan, peyton
Date 2013-11-20.22:15:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1384985747.38.0.838068020753.issue19660@psf.upfronthosting.co.za>
In-reply-to
Content
I don't feel very strongly, but I do think that most of the things the new syntax allows are not improvements -- they make the decorator harder to read. It was intentional to force you to compute a variable before you can use it as a decorator, e.g.

spamify = (spam if p else eggs)

@spamify
def f():
    pass
History
Date User Action Args
2013-11-20 22:15:47gvanrossumsetrecipients: + gvanrossum, ncoghlan, eric.smith, eric.araujo, dirn, Guido.van.Rossum, james, peyton
2013-11-20 22:15:47gvanrossumsetmessageid: <1384985747.38.0.838068020753.issue19660@psf.upfronthosting.co.za>
2013-11-20 22:15:47gvanrossumlinkissue19660 messages
2013-11-20 22:15:47gvanrossumcreate