Decorators inside of class and decorator parameters

Gabriel Genellina gagsl-py at yahoo.com.ar
Sun Jan 14 11:50:44 EST 2007


"Colin J. Williams" <cjw at sympatico.ca> escribió en el mensaje 
news:eodck0$32a$1 at sea.gmane.org...

> Gabriel Genellina wrote:
>> 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?

But it looks rather strange - a method without self, that is not a 
classmethod nor static method, and can't be called on an instance...

-- 
Gabriel Genellina 






More information about the Python-list mailing list