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 ncoghlan
Recipients ncoghlan, productivememberofsociety666, r.david.murray, rhettinger
Date 2015-03-26.00:43:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1427330625.18.0.219846891209.issue23764@psf.upfronthosting.co.za>
In-reply-to
Content
Well, there's an expected keyboard shortcut (accidentally hitting Shift-Enter submits the page...)

Anyway, the idea I came up with after looking at that is potentially adjusting functools.partial to accept a "call_target" parameter, which would allow it to *claim* to be a partial object calling "func" (and reporting its signature accordingly) while *actually* calling "wrapped_func" (which may not have accurate signature information).

That underlying feature could then be used as the basis for a new "wraps_validated" API that works by creating a partial object around the underlying function with the call target set to the decorated wrapper function.
History
Date User Action Args
2015-03-26 00:43:45ncoghlansetrecipients: + ncoghlan, rhettinger, r.david.murray, productivememberofsociety666
2015-03-26 00:43:45ncoghlansetmessageid: <1427330625.18.0.219846891209.issue23764@psf.upfronthosting.co.za>
2015-03-26 00:43:45ncoghlanlinkissue23764 messages
2015-03-26 00:43:44ncoghlancreate