[Python-Dev] Call for defense of @decorators (original) (raw)

Neil Schemenauer 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: <http://www.eby-sarna.com/pipermail/peak/2004-July/001598.html>

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).

Neil



More information about the Python-Dev mailing list