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