[Python-Dev] Re: 2.4a2, and @decorators (original) (raw)

Guido van Rossum guido at python.org
Thu Aug 5 06:36:04 CEST 2004


Just a question, when "as" become a keyword in Python 3, can we expect a new syntax using that keyword instead (or additionally)? There's multiple possible syntaxes using "as", even replacing simply @ by "as" would be an improvement IMHO, since that would be english-readable (as static method define foo), like most of Python.

When 'as' becomes a keyword, it is open for use in other syntax, but it won't be used for decorators (as long as I'm BDFL). 'as' suggests a renaming (like it does in import and in SQL) or perhaps a type (I've seen "as duck" in a new vaguely Pythonic language named "boo"), but that's not what decorators doo.

--Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-Dev mailing list