What are decorated functions?

Daniel O'Brien danielobrien at gmail.com
Tue Aug 22 19:27:10 EDT 2006


PEP 318 provides some great examples:
http://www.python.org/dev/peps/pep-0318/

For more information no the decorator pattern in general:
http://en.wikipedia.org/wiki/Decorator_pattern

How one actually makes use of decorators beyond the above is an
exercise of imagination.

Wolfgang Draxinger wrote:
> I'm just reading the python language reference and came around
> the term "decorated functions", but I have no idea, for what
> they could be used.
>
> Any reply gracefully accepted.
>
> Wolfgang Draxinger
> --
> E-Mail address works, Jabber: hexarith at jabber.org, ICQ: 134682867
> GPG key FP: 2FC8 319E C7D7 1ADC 0408 65C6 05F5 A645 1FD3 BD3E




More information about the Python-list mailing list