[IPython-dev] Next-gen result printing using generics

Walter Dörwald walter@livinglogic...
Sat May 26 05:38:12 CDT 2007


Ville M. Vainio wrote:
> On 5/26/07, Ville M. Vainio <vivainio@gmail.com> wrote:
> 
>> Coming soon to SVN, once I clean it up (remove deco syntax etc.):
> 
> Ok, it's in.

It looks like a double generic now. ;)

@generic
def result_display(result):
     """ print the result of computation """
     raise TryNext

result_display = generic(result_display)

Either the decorator or function call should go.

> [...]

Servus,
    Walter


More information about the IPython-dev mailing list