BadPython.com

Suggestion for "Abusing lambda"

Abstract to function to avoid confusion as to where it is defined/abuse of lambdas
            

# Define this as a named function. There's no reason to 
#   have this be a lambda given its complexity.
#   Yes, it does immediately return but the multiple inputs
#   have bad code smell
def my_operation(x, y, c, d):
    return update(c) + lookup(x) + halve(y) + double(d)