chris.cavalaria at free.fr
Sat Aug 14 13:56:53 CEST 2004
Paul Morrow wrote:
> One of the beautiful things about Python is its clear, minimal syntax.
> So we must resist adding new syntax to the language, especially where
> there is a reasonable alternative.
> I believe that Stefen Eischet's suggestion for automatically determining
> a method's type (class/instance/static) from the name of its first
> formal parameter is a reasonable alternative to any/all of the decorator
> syntax proposals.
Here is another one that forgot that decorators aren't limited to
classmethod and staticmethod. Therefore, that proposal alone isn't an
alternative to any other syntax.
If you want to say that decorators should be limited to classmethod and
staticmethod, say it and give us a good reason, a very very good reason.
More information about the Python-list