7 func2 with arg: dispatcher arg test
11 func4 with arg: the arg
18 print 'func2 with arg: ' + arg1
22 print 'func3 param:' + item
24 def func4(arg1
, *rest
):
25 print 'func4 with arg: ' + arg1
27 print 'func4 param:' + item
31 func3('multiple', 'params')
33 dispatcher
= {'f1': func1
, 'f2': func2
, 'f3': func3
, 'f4': func4
}
36 dispatcher
['f2']('dispatcher arg test')
37 dispatcher
['f3']('dispatcher', 'multiple', 'args')
38 dispatcher
['f4']('the arg', 42)