[Tutor] Python decorator
kent37 at tds.net
Thu Aug 31 17:46:22 CEST 2006
János Juhász wrote:
> 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:
You might also be interested in the examples in PEP 318 and this wiki page:
More information about the Tutor