Message184649
There's an interesting backwards compatibility challenge here. We definitely need to fix the misbehaviour, since it can lead to some pretty serious bugs in user code when attempting to bypass the LRU cache decorator if the wrapped function itself had a __wrapped__ attribute.
However, Michael tells me that at least some third party clients of the introspection tools assumed the "__wrapped__ points to the bottom of the wrapper stack" behaviour was intentional rather than just me screwing up the implementation.
The existing docs for update_wrapper are unfortunately ambiguous because they use the term "original function" instead of "wrapped function". |
|
Date |
User |
Action |
Args |
2013-03-19 17:44:45 | ncoghlan | set | recipients:
+ ncoghlan, rhettinger, michael.foord |
2013-03-19 17:44:45 | ncoghlan | set | messageid: <1363715085.73.0.0143498943906.issue17482@psf.upfronthosting.co.za> |
2013-03-19 17:44:45 | ncoghlan | link | issue17482 messages |
2013-03-19 17:44:45 | ncoghlan | create | |
|