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 eric.araujo, mitar, ncoghlan, r.david.murray, rhettinger
Date 2010-08-21.17:01:27
SpamBayes Score 0.00072710507
Marked as misclassified No
Message-id <1282410089.42.0.0593561549322.issue9157@psf.upfronthosting.co.za>
In-reply-to
Content
How?

It was easy for wraps to add the __wrapped__ attribute, since it has access to both the wrapping function and the function being wrapped.

But it hasn't got a clue as to the identity of the decorator that is applying the wrapper.

Absent a concrete suggestion for how to actually do this cleanly, I'm inclined to reject the idea as being infeasible given the way decorators are applied.
History
Date User Action Args
2010-08-21 17:01:29ncoghlansetrecipients: + ncoghlan, rhettinger, eric.araujo, r.david.murray, mitar
2010-08-21 17:01:29ncoghlansetmessageid: <1282410089.42.0.0593561549322.issue9157@psf.upfronthosting.co.za>
2010-08-21 17:01:28ncoghlanlinkissue9157 messages
2010-08-21 17:01:27ncoghlancreate