Hi Michele,<br><br>Ben's been working on getting IPython's "func??" introspection to automatically unwrap functions decorated with @decorator. ( <a href="https://github.com/ipython/ipython/pull/578">https://github.com/ipython/ipython/pull/578</a> )<br>

<br>If a function is wrapped in several layers, f.__wrapped__ refers to the object one level below. This is in contrast to Python 3 functools.wraps, which seems to point __wrapped__ to the original function from any wrapping layer. Of course, we could unwrap repeatedly in a while loop, but I'm reluctant to do this in case strange objects from other packages drop it into an infinite loop.<br>

<br>Would you consider making __wrapped__ (or another similar attribute) point to the original function when several layers of wrapping are present? Or do you know of a better way to approach the problem?<br><br>Thanks,<br>

Thomas<br>