On Tue, 09 May 2006 10:47:51 +1000, "Graeme
Cross" <gcross fastmail.fm>
said:
> On Tue, 09 May 2006 10:08:44 +1000, "Tennessee
Leeuwenburg"
> <tennessee 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?
> >
>
> 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§ion=PYTHONCKBK&type=Subsection
Regards,
Graeme
--
Graeme Cross
E-mail: gcross fastmail.net
_______________________________________________
melbourne-pug mailing list
melbourne-pug python.org
http://mail.python.org/mailman/listinfo/melbourne-pug
|