Scott David Daniels <Scott.Daniels at Acm.Org> writes: > result = [(lambda: expr0), lambda: expr1][cond]() Winner of the "there should be one obvious way to do it" award. ;-)