Decorator Base Class: Needs improvement.

Scott David Daniels Scott.Daniels at Acm.Org
Wed Apr 6 12:30:33 EDT 2005


Bengt Richter wrote:
> @deco.one
 > def foo(): pass

> Ok, now what do you call this @-line? Freaky decorator factory invocation?
> Decoratoriferous expression? ;-) 
This one has a certain je ne sais quoi ;-), but I'd call "deco.one"
the decorator function (since it _must_ evaluate to a function), and
if it needs more clarity, of your non-oderiferous proposals, I'd take:
> Decorator expression for short? 

--Scott David Daniels
Scott.Daniels at Acm.Org



More information about the Python-list mailing list