[Python-Dev] decorator module in stdlib? (original) (raw)

Nick Coghlan ncoghlan at gmail.com
Wed Apr 8 23:40:44 CEST 2009


P.J. Eby wrote:

Anyway, it's nice for decorators to be transparent to inspection when the decorator doesn't actually modify the calling signature, so that you can then use your decorated functions with tools like the above.

If anyone wanted to take PEP 362 up again, we could easily add a signature attribute to functools.update_wrapper. It may be too late to hammer it into shape for 3.1/2.7 though (I don't recall how far the PEP was from being ready for prime time) .

Cheers, Nick.

-- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia



More information about the Python-Dev mailing list