Why not real anonymous functions?

The functionality of lambda is severely restricted.

That’s useful context but it’s also sort of a non-answer. An opinion that may have been justified in 2006 may no longer be so in 2024, especially in light of developments in other languages. Python itself has adopted many functional constructs in the meantime. (Try to imagine using match in Python back in 2006!) So it seems worth revisiting at the least.

5 Likes