[Python-Dev] Call for defense of @decorators
nas at arctrix.com
Thu Aug 5 22:53:16 CEST 2004
On Thu, Aug 05, 2004 at 10:16:16PM +0200, Ronald Oussoren wrote:
> On 5-aug-04, at 22:11, Neil Schemenauer wrote:
> >What I meant was if we have a nice syntax for setting function
> >attributes then the metaclass to transform the functions just
> >like a decorator could.
> And how would that solve this:
Is that supposed to be a good example how to use decorators?
Anyhow, obviously a metaclass won't work for module level functions
(unless you had a way of setting the metaclass of the module).
More information about the Python-Dev