Why not real anonymous functions?

Yes, commentary, because people disagree that this is useful. Even if people find a good syntax there is still quite a bit of work to do in convince the python community and the core devs that it is actually a good idea. But to quote once again what was already said before “as long as we don’t have a syntax, this discussion is not worth having”.

I am also personally not sure if multiline lambdas are useful. IMO the examples I showed above are perfectly acceptable solutions that already work, and solve 2/3 of the examples brought up. IMO the pattern of instantly calling a function literal is a stupid idiom in other languages that makes code less readable. I am also open to a “scope” statement suggestion in python, eliminating the need for the weird idiom. (and I am even opening to that being able to have a return to bind to a variable in the outer scope).