Joseph L. Casale
jcasale at activenetwerx.com
Sun Mar 10 23:18:37 CET 2013
> Or could you do something like:
> arguments_to_pass = [list of some sort]
> switch.get(var, default)(*arguments_to_pass)
Stevens lambda suggestion was most appropriate. Within the switch, there
are functions called with none, or some variation of arguments. It was not
easy to pass them in after the fact, especially since the same function may
have different args depending on which case.
The lamda worked well.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list