[Python-ideas] The way decorators are parsng
Nick Coghlan
ncoghlan at gmail.com
Thu Oct 20 05:41:17 CEST 2011
2011/10/20 Guido van Rossum <guido at python.org>:
> If this gets changed we won't be able to give a different meaning to e.g.
>
> @(...)
> @[...]
> @{...}
>
> since those will all have to be accepted as valid forms of the syntax
>
> @<expr>
True, although the restriction could just be weakened to "must start
with an identifier" rather than eliminated entirely. Since tuples,
lists, dictionaries and sets aren't callable, that wouldn't be a
noticeable restriction in practice.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
More information about the Python-ideas
mailing list