Stephen {
Stephen 'one': lambda x:x.blat(),
Stephen 'two': lambda x:x.blah(),
Stephen }.get(someValue, lambda x:0)(someOtherValue)
One thing to remember is that function calls in Python are pretty damn
expensive. If x.blat() or x.blah() are themselves only one or two lines of
Skip Montanaro [EMAIL PROTECTED] wrote in
news:[EMAIL PROTECTED]:
Stephen {
Stephen 'one': lambda x:x.blat(),
Stephen 'two': lambda x:x.blah(),
Stephen }.get(someValue, lambda x:0)(someOtherValue)
One thing to remember is that function calls in Python are
pretty damn