[Python-ideas] Before and after the colon in funciton defs.
bruce at leapyear.org
Fri Sep 23 04:39:16 CEST 2011
On Thu, Sep 22, 2011 at 7:27 PM, Devin Jeanpierre <jeanpierreda at gmail.com>wrote:
> I still like real decorators because they can be applied at run-time
> instead of just compile-time, which gives them additional use-cases.
The $inject special decorator would need to be recognized at compile time
but would be applied at run time just as @decorators are. That is, I see no
reason this couldn't work:
def bar(c): return b+c
Follow me: http://www.twitter.com/Vroo http://www.vroospeak.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas