This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author productivememberofsociety666
Recipients ncoghlan, productivememberofsociety666, r.david.murray, rhettinger
Date 2015-03-26.00:30:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1427329812.97.0.0984401545189.issue23764@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2015-03-26 00:30:13productivememberofsociety666setrecipients: + productivememberofsociety666, rhettinger, ncoghlan, r.david.murray
2015-03-26 00:30:12productivememberofsociety666setmessageid: <1427329812.97.0.0984401545189.issue23764@psf.upfronthosting.co.za>
2015-03-26 00:30:12productivememberofsociety666linkissue23764 messages
2015-03-26 00:30:12productivememberofsociety666create