Scott David Daniels <[EMAIL PROTECTED]> writes: > result = [(lambda: expr0), lambda: expr1][cond]()
Winner of the "there should be one obvious way to do it" award. ;-) -- http://mail.python.org/mailman/listinfo/python-list
Scott David Daniels <[EMAIL PROTECTED]> writes: > result = [(lambda: expr0), lambda: expr1][cond]()
Winner of the "there should be one obvious way to do it" award. ;-) -- http://mail.python.org/mailman/listinfo/python-list