Decorators inside of class and decorator parameters

Colin J. Williams cjw at sympatico.ca
Sun Jan 14 08:52:57 EST 2007


Gabriel Genellina wrote:
[snip]
> As said in the beginning, there is no use for decorators as methods (perhaps 
> someone can find a use case?)
Except, perhaps to indicate to the script reader that the decorator only 
applies within the class?

Colin W.
> If you move the example above inside the class, you get exactly the same 
> results.
> 
> HTH,
> 
> 




More information about the Python-list mailing list