List Info

Thread: Python decorator




Python decorator
user name
2006-08-31 15:46:22
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://w
iki.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://doc
s.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/PythonDe
coratorLibrary?highlight=%28decorator%29

Kent

_______________________________________________
Tutor maillist  -  Tutorpython.org
http://
mail.python.org/mailman/listinfo/tutor
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )