[py-dev] Using funcargs with decorators

Antonio Cuni anto.cuni at gmail.com
Mon Oct 15 10:05:48 CEST 2012


On 10/12/2012 06:50 PM, Floris Bruynooghe wrote:
> Are these being addressed by PEP 362?  I must admit I haven't had time
> to read this yet, but if functools.wraps gets updated it was my
> understanding that the *args, **kwargs inspection issue should be
> solved and if you can set attributes on the signature object it could
> stay persistent in the face of composition of decorators?

I was not aware of PEP 362, which seems a good step in that direction, but
indeed if functools.wraps does not update the signature automatically, it
won't be used much in practice I fear.

ciao,
Anto



More information about the Pytest-dev mailing list