[IPython-dev] 'Unwrapping' decorated functions in IPython

Ben Edwards bedwards at cs.unm.edu
Fri Jul 15 10:03:12 EDT 2011


Whoops missed the thread before I sent my email. Looks like we need to think
more.

On Fri, Jul 15, 2011 at 8:46 AM, Ben Edwards <bedwards at cs.unm.edu> wrote:

> Thanks this sounds like a plan, I reverted the to the original in the pull
> request.
>
> Ben
>
>
> On Fri, Jul 15, 2011 at 7:02 AM, Thomas Kluyver <takowl at gmail.com> wrote:
>
>> On 15 July 2011 12:29, Michele Simionato <michele.simionato at gmail.com>wrote:
>>
>>> Following the lead of  functools.wraps seems to be a sensible way to go,
>>> even if the "onion-like" behavior seems more natural to me. Since I am an
>>> user of IPython, it is my interest to have this functionality
>>> working. Consider this added to the list of feature requests I have for the
>>> decorator module. If it will enter in the next release of the module I will
>>> keep you informed.
>>
>>
>> Great, thanks Michele.
>>
>> Ben, let's revert to the original design to just unwrap one layer, then.
>>
>> Best wishes,
>> Thomas
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20110715/b84b927c/attachment.html>


More information about the IPython-dev mailing list