Message239290
Regarding the PyPI decorator module, the difference there is between using a "def f(*args, **kwargs)" wrapper (which requires following wrapper chains to read the signature correctly) and using functools.partial (which reports the correct surface signature directly).
You can define your own wrapper decorators like this to reproduce that behaviour with standard library components:
def wrapper(func):
return functools.wraps(func)(functools.partial(func)) |
|
Date |
User |
Action |
Args |
2015-03-25 23:55:12 | ncoghlan | set | recipients:
+ ncoghlan, rhettinger, r.david.murray, productivememberofsociety666 |
2015-03-25 23:55:12 | ncoghlan | set | messageid: <1427327712.6.0.229032010359.issue23764@psf.upfronthosting.co.za> |
2015-03-25 23:55:12 | ncoghlan | link | issue23764 messages |
2015-03-25 23:55:12 | ncoghlan | create | |
|