by blester · 5y ago · 0 comments
In short: being picked up by a linter does not mean that something is un-pythonic.
def add_fun(x,y): return x+y
But I wouldn't mind irritating the linter with an assigned lambda. I fail to see what's the problem with it
Of course the point regarding the simplicity of importing a function instead of defining it still stands.
I personally wouldn't mind defining those functions as they are very immediate. So from the article I would take only the part about the more exotic "operator".