[issue23764] functools.wraps should be able to change function argspec as well
productivememberofsociety666
report at bugs.python.org
Thu Mar 26 01:30:12 CET 2015
productivememberofsociety666 added the comment:
def wrapper(func):
return functools.wraps(func)(functools.partial(func))
^ doesn't that just return something that is completely equivalent to func itself? Where do I put the actual wrapper functionality, i.e. code that is executed with each call to the "new" (wrapped) function?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23764>
_______________________________________
More information about the Python-bugs-list
mailing list