Roy Smith wrote: > Andrew Durdin <adurdin at gmail.com> wrote: >>Corrected version: >> result = [(lambda: expr0), lambda: expr1][bool(cond)]() Sorry, I thought cond was a standard boolean. Better is: result = [(lambda: true_expr), lambda: false_expr][not cond]() --Scott David Daniels Scott.Daniels at Acm.Org