[melbourne-pug] Decorators

Graeme Cross gcross at fastmail.fm
Tue May 9 02:47:51 CEST 2006


On Tue, 09 May 2006 10:08:44 +1000, "Tennessee Leeuwenburg"
<tennessee at tennessee.id.au> said:
> Does anyone have any functional code which demonstrates the use of 
> decorators? I don't mean just
> 
> @staticmethod
> def foo():
>     print "bar"
> 
> but rather something that demonstrates where and why one would make use 
> of a decorator?
> 

http://wiki.python.org/moin/PythonDecoratorLibrary is a good resource.
To quote the page:

  "This page is meant to be a central repository of decorator code
  pieces, whether useful or not <wink>."

- Graeme
-- 
Graeme Cross
E-mail: gcross at fastmail.net



More information about the melbourne-pug mailing list