Message239295
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. |
|
Date |
User |
Action |
Args |
2015-03-26 00:43:45 | ncoghlan | set | recipients:
+ ncoghlan, rhettinger, r.david.murray, productivememberofsociety666 |
2015-03-26 00:43:45 | ncoghlan | set | messageid: <1427330625.18.0.219846891209.issue23764@psf.upfronthosting.co.za> |
2015-03-26 00:43:45 | ncoghlan | link | issue23764 messages |
2015-03-26 00:43:44 | ncoghlan | create | |
|