[Python-Dev] Re: 2.4a2, and @decorators

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

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant