Message203539
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 |
|
Date |
User |
Action |
Args |
2013-11-20 22:15:47 | gvanrossum | set | recipients:
+ gvanrossum, ncoghlan, eric.smith, eric.araujo, dirn, Guido.van.Rossum, james, peyton |
2013-11-20 22:15:47 | gvanrossum | set | messageid: <1384985747.38.0.838068020753.issue19660@psf.upfronthosting.co.za> |
2013-11-20 22:15:47 | gvanrossum | link | issue19660 messages |
2013-11-20 22:15:47 | gvanrossum | create | |
|