Decorators

Philip Semanchuk philip at semanchuk.com
Fri Mar 6 16:14:43 CET 2009


On Mar 6, 2009, at 9:13 AM, Michiel Overtoom wrote:

> Johnny wrote...
>
>> Can anyone explain to me what are decorators for? What are advantages
>> of using them?
>
> A tutorial article about decorators from Bruce Eckel:
>
> http://www.artima.com/weblogs/viewpost.jsp?thread=240808

Thanks for that, Michiel. His examples using classes as function  
decorators are IMHO a whole lot easier to read than the ones that use  
functions.

Good stuff.

Cheers
Philip



More information about the Python-list mailing list