[Python-Dev] decorator module in stdlib?

Terry Reedy tjreedy at udel.edu
Tue Apr 7 23:04:43 CEST 2009

Daniel Fetchinson wrote:
> The decorator module [1] written by Michele Simionato is a very useful
> tool for maintaining function signatures while applying a decorator.
> Many different projects implement their own versions of the same
> functionality, for example turbogears has its own utility for this, I
> guess others do something similar too.
> Was the issue whether to include this module in the stdlib raised? If
> yes, what were the arguments against it? If not, what do you folks
> think, shouldn't it be included? I certainly think it should be.
> Originally I sent this message to c.l.p [2] and Michele suggested it
> be brought up on python-dev. He also pointed out that a PEP [3] is
> already written about this topic and it is in draft form.
> What do you guys think, wouldn't this be a useful addition to functools?

> [1] http://pypi.python.org/pypi/decorator
> [2] http://groups.google.com/group/comp.lang.python/browse_thread/thread/d4056023f1150fe0
> [3] http://www.python.org/dev/peps/pep-0362/

This probably should have gone to the python-ideas list.  In any case, I 
think it needs to start with a clear offer from Michele (directly or 
relayed by you) to contribute it to the PSF with the usual conditions.

More information about the Python-Dev mailing list