Decorator syntax

Tony C cappy2112 at yahoo.com
Fri Aug 6 02:51:18 CEST 2004


> This is backwards compatible (Python <= 2.3 raise
> SyntaxError), and looks much nicer than @.

"Almost" anything looks better than the @ syntax.
If @ gets implemented, there goes the whole easily-readable plug for
Python.
We might as all go learn Perl.

While everyone is fussing around on the syntax of decorators, I think
they should change the name as well (although I don't have a
reasonable alternative yet). Decorator is the least program-like term
I've ever heard of. :)



More information about the Python-list mailing list