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

Walter Dörwald walter at livinglogic.de
Sat May 26 06:38:12 EDT 2007


Ville M. Vainio wrote:
> On 5/26/07, Ville M. Vainio <vivainio at 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