[Python-Dev] Re: decorators and 2.4
jbone at deepfile.com
Fri Jun 25 17:51:46 EDT 2004
On Jun 25, 2004, at 3:52 PM, Brian L. wrote:
> such a bad way. The brackets actually set off the decorators nicely.
> Something like:
> def func(args):
IMHO, making decorators functions is a bad idea. Decorators are
metadata about the function to which they refer. Using the same syntax
for decorators as for functions conceptually weakens this distinction
and encourages misuse of decorators, even to the point of potentially
encouraging (or implying) side-effects as a result of decoration.
More information about the Python-Dev