How can I write a lambda expression that\'s equivalent to:
def x(): raise Exception()
The following is not allowed:
y =
How about:
lambda x: exec('raise(Exception(x))')