News for hackers. Stuff that matters.
Re:Functools – The Power of Higher-Order Functions in Python by mistaken on Friday July 09, 2021 @07:01AM (#27782425)
It's possible to execute statements in a lambda through exec. But it's more of hack than what it worth.

  print((lambda x: [exec('x = x + 1; result = x'), eval('result')][1])(1))

There are no comments on this comment yet.