I have a named lambda expression like this one:
expr1 = lambda x: x > 3
For some reasons, along the code I check some flags and might do this:
expr2 = lambda x: expr1(x) and x % 2 == 0
So, I am defining a more restrictive lambda expression based on my needs.
I've seen this post about naming lambdas that explains how they are not pythonic at all.
What is a better way to define functions that may get more conditions along the code?