[Python-Dev] decorator module in stdlib?

Daniel Fetchinson fetchinson at googlemail.com
Tue Apr 7 07:55:47 CEST 2009

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/

Psss, psss, put it down! - http://www.cafepress.com/putitdown

More information about the Python-Dev mailing list