[Python-ideas] Syntax for defining parametric decorators
Nick Coghlan
ncoghlan at gmail.com
Mon Jul 9 00:54:07 CEST 2012
Step one is to stop referring to decorator factories as decorators.
Beyond that, no, this is too limited - it only helps when there's no extra
code in the outer scope which, in my experience, is the exception rather
than the rule. Closures are an advanced programming concept - there are
limits to how simple they are ever going to be.
Cheers,
Nick.
--
Sent from my phone, thus the relative brevity :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20120709/1fb07743/attachment.html>
More information about the Python-ideas
mailing list