List Info

Thread: Decorators




Decorators
user name
2006-05-09 00:50:42
On Tue, 09 May 2006 10:47:51 +1000, "Graeme
Cross" <gcrossfastmail.fm>
said:
> On Tue, 09 May 2006 10:08:44 +1000, "Tennessee
Leeuwenburg"
> <tennesseetennessee.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?
> > 
> 
> ht
tp://wiki.python.org/moin/PythonDecoratorLibrary is a
good resource.

And a quick search in the Python cookbook reveals 53 recipes
that
mention decorators, and some of those recipes are both
educational and
useful.

  http://aspn.activestate.com/ASPN/search?query=decorator&am
p;x=0&y=0&section=PYTHONCKBK&type=Subsection

Regards,
Graeme
-- 
Graeme Cross
E-mail: gcrossfastmail.net

_______________________________________________
melbourne-pug mailing list
melbourne-pugpython.org
http://mail.python.org/mailman/listinfo/melbourne-pug
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )