[Python-Dev] my first post: asking about a "decorator" module

Michele Simionato michele.simionato at gmail.com
Wed May 4 18:49:17 CEST 2005

My first post to python-dev, but I guess my name is not completely unknown
in this list ;)

Actually, I have been wondering about subscribing to python-dev for at least 
a couple of years, but never did it, because of the limited amount of time 
I have to follow all the interesting mailing lists in the world.

However, in the last few months I have been involved with teaching Python 
and I have decided to follow more closely the development to keep myself
updated on what is going on.

Plus, I have some ideas I would like to share with people in this list.

One of them concerns decorators.

Are there plans to improve decorators support in future Python versions?
By "improving decorator support" I mean for instance a module in the standard
library providing some commonly used decorators such as ``memoize``,
or utilities to create and compose decorators, and things like that.

I have been doing some work on decorators lately and I would be
willing to help is there is a general interest about a "decorator"
module. Actually, I have already a good candidate function for that module,
and plenty of recipes.

I submitted an early version of the idea some time ago on c.l.py


but I could as well flesh it out and deliver a module people can
play with and see if they like it. This is especially interesting in this
moment, since decorators may address many of the use cases 
of PEP 340 (not all of them).

I need to write down some documentation, but it could be done by tomorrow.

What do people think?

           Michele Simionato

More information about the Python-Dev mailing list