On Sun, Sep 20, 2009 at 3:40 PM, John <jfabi...@yolo.com> wrote:
> Hi,
>
> I think I understand what decorators are and how they work.  Maybe it's just
> me but I don't know where I'd use them in my real world programming.  I see
> how they work with profile or coverage but does anyone have real world uses.

Here are some examples:
http://wiki.python.org/moin/PythonDecoratorLibrary

TurboGears uses decorators to expose functions to the web. Django has
decorators for authentication and caching.

Kent
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to