Nick Coghlan added the comment:

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))

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23764>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to