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
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to