decorator J4 - any objections?
Nicolas Fleury
nid_oizo at yahoo.com_removethe_
Sat Aug 21 10:34:13 EDT 2004
Martin DeMello wrote:
> Perhaps J2 but with proposal L to call the decorator declaration
> something other than "decorate" - 'using' is the best I've seen so far,
> though it's still not perfect. Or another idea - how about inverting the
> meaning of 'as', and changing the form of the decorator declarations
> slightly?
>
> as:
> classmethod
> memoised
> accepting (int, int)
> returning (float)
> def foo(bar, baz):
But Guido already said he wanted to keep as for other meanings.
Regards,
Nicolas
More information about the Python-list
mailing list