[PEAK] generic functions question

Vladimir Iliev vladimir.iliev at gmail.com
Thu Nov 18 11:14:32 EST 2004


I have an use case like this:

import dispatch
def f(arg):
[f.when("arg == 'blabla'")]
def f1(arg):
    print 1
[f.when("arg != 'blabla'")]
def f2(arg):
    print 2

it works just well, but I wonder is there a way to register f2() as
default/fallback func ?

Thanks in advance!

Vladimir Iliev

More information about the PEAK mailing list