[Tutor] Python decorator
Kent Johnson
kent37 at tds.net
Thu Aug 31 17:46:22 CEST 2006
János Juhász wrote:
> Hi,
>
> I have just started to play with TurboGears - it is really nice - and I
> couldn't understand the decorators used by it.
> I have tried to interpret the http://wiki.python.org/moin/PythonDecorators
> about decorators, but it is too difficult for me.
That's not the best starting point, it is more of historical interest.
There was a huge debate about the syntax to use for decorators, it is
summarized on that page.
See if this makes more sense:
http://docs.python.org/whatsnew/node6.html
You might also be interested in the examples in PEP 318 and this wiki page:
http://wiki.python.org/moin/PythonDecoratorLibrary?highlight=%28decorator%29
Kent
More information about the Tutor
mailing list