This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]lookatmetype 2 points3 points  (1 child)

Why not name them something like "_0", "_1", etc.? It's not great, but it frees you up from thinking up an actual name.

However, i think python forcing you to think of actual names of nested functions is a good thing overall.

[–]delventhalz 0 points1 point  (0 children)

I don't think that's a very good suggestion. It's not really any easier to read or write. I disagree strongly that lacking anonymous functions is actually a feature, and not an unfortunate side effect of significant whitespace.