Is there a way to test whether a variable holds a lambda? The context is I\'d like to check a type in a unit test:
lambda
self.assertEquals(lambda, type(my
def isalambda(v): LAMBDA = lambda:0 return isinstance(v, type(LAMBDA)) and v.__name__ == LAMBDA.__name__