[Python-Dev] -1 on @[decorator]
Hannu Krosing
hannu at tm.ee
Fri Jul 2 02:37:29 CEST 2004
On R, 2004-07-02 at 03:25, Edward C. Jones wrote:
> There are three 7-bit ASCII characters not used in Python: "@", "$", and
> "?". Please don't waste one of them for the special purpose of decorators:
>
> @[staticmethod]
> def fun(args):
> ...
>
> To me "@" says "not python". I use it in templates that generate Python
> code.
>
> -1 for "@" in decorators.
a nice backward-compatible notation would be
#[staticmethod]#
but I'm sure that someone is using that in his templates ;)
---------------
Hannu
More information about the Python-Dev
mailing list